@beeable/sdk 0.6.3 → 0.7.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 (234) hide show
  1. package/dist/app-runtime/data.d.ts +137 -0
  2. package/dist/app-runtime/data.d.ts.map +1 -0
  3. package/dist/app-runtime/data.js +360 -0
  4. package/dist/app-runtime/data.js.map +1 -0
  5. package/dist/app-runtime/index.d.ts +37 -27
  6. package/dist/app-runtime/index.d.ts.map +1 -1
  7. package/dist/app-runtime/index.js +64 -67
  8. package/dist/app-runtime/index.js.map +1 -1
  9. package/dist/app-runtime/typed-api.d.ts +196 -0
  10. package/dist/app-runtime/typed-api.d.ts.map +1 -0
  11. package/dist/app-runtime/typed-api.js +233 -0
  12. package/dist/app-runtime/typed-api.js.map +1 -0
  13. package/dist/generated/schemas/appTemplateResponseDto.d.ts +5 -3
  14. package/dist/generated/schemas/appTemplateResponseDto.d.ts.map +1 -1
  15. package/dist/generated/schemas/appTemplateResponseDto.js +84 -0
  16. package/dist/generated/schemas/appTemplateResponseDto.js.map +1 -1
  17. package/dist/generated/schemas/chatCompletionDto.d.ts +7 -6
  18. package/dist/generated/schemas/chatCompletionDto.d.ts.map +1 -1
  19. package/dist/generated/schemas/chatCompletionDtoToolChoice.d.ts +5 -3
  20. package/dist/generated/schemas/chatCompletionDtoToolChoice.d.ts.map +1 -1
  21. package/dist/generated/schemas/chatCompletionDtoToolChoice.js +0 -84
  22. package/dist/generated/schemas/chatCompletionDtoToolChoice.js.map +1 -1
  23. package/dist/generated/schemas/chatContentPartDto.d.ts +103 -0
  24. package/dist/generated/schemas/chatContentPartDto.d.ts.map +1 -0
  25. package/dist/generated/schemas/chatContentPartDto.js +2 -0
  26. package/dist/generated/schemas/chatContentPartDto.js.map +1 -0
  27. package/dist/generated/schemas/chatContentPartDtoContent.d.ts +91 -0
  28. package/dist/generated/schemas/chatContentPartDtoContent.d.ts.map +1 -0
  29. package/dist/generated/schemas/chatContentPartDtoContent.js +86 -0
  30. package/dist/generated/schemas/chatContentPartDtoContent.js.map +1 -0
  31. package/dist/generated/schemas/chatContentPartDtoImageUrl.d.ts +91 -0
  32. package/dist/generated/schemas/chatContentPartDtoImageUrl.d.ts.map +1 -0
  33. package/dist/generated/schemas/chatContentPartDtoImageUrl.js +86 -0
  34. package/dist/generated/schemas/chatContentPartDtoImageUrl.js.map +1 -0
  35. package/dist/generated/schemas/chatContentPartDtoInput.d.ts +91 -0
  36. package/dist/generated/schemas/chatContentPartDtoInput.d.ts.map +1 -0
  37. package/dist/generated/schemas/chatContentPartDtoInput.js +86 -0
  38. package/dist/generated/schemas/chatContentPartDtoInput.js.map +1 -0
  39. package/dist/generated/schemas/chatContentPartDtoType.d.ts +95 -0
  40. package/dist/generated/schemas/chatContentPartDtoType.d.ts.map +1 -0
  41. package/dist/generated/schemas/chatContentPartDtoType.js +92 -0
  42. package/dist/generated/schemas/chatContentPartDtoType.js.map +1 -0
  43. package/dist/generated/schemas/chatMessageDto.d.ts +3 -2
  44. package/dist/generated/schemas/chatMessageDto.d.ts.map +1 -1
  45. package/dist/generated/schemas/chatMessageDtoContent.d.ts +3 -4
  46. package/dist/generated/schemas/chatMessageDtoContent.d.ts.map +1 -1
  47. package/dist/generated/schemas/chatMessageDtoContent.js +0 -84
  48. package/dist/generated/schemas/chatMessageDtoContent.js.map +1 -1
  49. package/dist/generated/schemas/chatResponseFormatDto.d.ts +89 -0
  50. package/dist/generated/schemas/chatResponseFormatDto.d.ts.map +1 -0
  51. package/dist/generated/schemas/chatResponseFormatDto.js +2 -0
  52. package/dist/generated/schemas/chatResponseFormatDto.js.map +1 -0
  53. package/dist/generated/schemas/chatResponseFormatDtoType.d.ts +90 -0
  54. package/dist/generated/schemas/chatResponseFormatDtoType.d.ts.map +1 -0
  55. package/dist/generated/schemas/chatResponseFormatDtoType.js +90 -0
  56. package/dist/generated/schemas/chatResponseFormatDtoType.js.map +1 -0
  57. package/dist/generated/schemas/chatStreamOptionsDto.d.ts +89 -0
  58. package/dist/generated/schemas/chatStreamOptionsDto.d.ts.map +1 -0
  59. package/dist/generated/schemas/chatStreamOptionsDto.js +86 -0
  60. package/dist/generated/schemas/chatStreamOptionsDto.js.map +1 -0
  61. package/dist/generated/schemas/chatToolCallDto.d.ts +92 -0
  62. package/dist/generated/schemas/chatToolCallDto.d.ts.map +1 -0
  63. package/dist/generated/schemas/chatToolCallDto.js +2 -0
  64. package/dist/generated/schemas/chatToolCallDto.js.map +1 -0
  65. package/dist/generated/schemas/chatToolCallDtoType.d.ts +89 -0
  66. package/dist/generated/schemas/chatToolCallDtoType.d.ts.map +1 -0
  67. package/dist/generated/schemas/chatToolCallDtoType.js +89 -0
  68. package/dist/generated/schemas/chatToolCallDtoType.js.map +1 -0
  69. package/dist/generated/schemas/chatToolCallFunctionDto.d.ts +90 -0
  70. package/dist/generated/schemas/chatToolCallFunctionDto.d.ts.map +1 -0
  71. package/dist/generated/schemas/chatToolCallFunctionDto.js +86 -0
  72. package/dist/generated/schemas/chatToolCallFunctionDto.js.map +1 -0
  73. package/dist/generated/schemas/chatToolChoiceDto.d.ts +91 -0
  74. package/dist/generated/schemas/chatToolChoiceDto.d.ts.map +1 -0
  75. package/dist/generated/schemas/chatToolChoiceDto.js +2 -0
  76. package/dist/generated/schemas/chatToolChoiceDto.js.map +1 -0
  77. package/dist/generated/schemas/chatToolChoiceDtoType.d.ts +89 -0
  78. package/dist/generated/schemas/chatToolChoiceDtoType.d.ts.map +1 -0
  79. package/dist/generated/schemas/chatToolChoiceDtoType.js +89 -0
  80. package/dist/generated/schemas/chatToolChoiceDtoType.js.map +1 -0
  81. package/dist/generated/schemas/chatToolChoiceFunctionDto.d.ts +88 -0
  82. package/dist/generated/schemas/chatToolChoiceFunctionDto.d.ts.map +1 -0
  83. package/dist/generated/schemas/chatToolChoiceFunctionDto.js +86 -0
  84. package/dist/generated/schemas/chatToolChoiceFunctionDto.js.map +1 -0
  85. package/dist/generated/schemas/chatToolDto.d.ts +91 -0
  86. package/dist/generated/schemas/chatToolDto.d.ts.map +1 -0
  87. package/dist/generated/schemas/chatToolDto.js +2 -0
  88. package/dist/generated/schemas/chatToolDto.js.map +1 -0
  89. package/dist/generated/schemas/chatToolDtoType.d.ts +89 -0
  90. package/dist/generated/schemas/chatToolDtoType.d.ts.map +1 -0
  91. package/dist/generated/schemas/chatToolDtoType.js +89 -0
  92. package/dist/generated/schemas/chatToolDtoType.js.map +1 -0
  93. package/dist/generated/schemas/chatToolFunctionDto.d.ts +92 -0
  94. package/dist/generated/schemas/chatToolFunctionDto.d.ts.map +1 -0
  95. package/dist/generated/schemas/chatToolFunctionDto.js +2 -0
  96. package/dist/generated/schemas/chatToolFunctionDto.js.map +1 -0
  97. package/dist/generated/schemas/chatToolFunctionDtoParameters.d.ts +91 -0
  98. package/dist/generated/schemas/chatToolFunctionDtoParameters.d.ts.map +1 -0
  99. package/dist/generated/schemas/chatToolFunctionDtoParameters.js +86 -0
  100. package/dist/generated/schemas/chatToolFunctionDtoParameters.js.map +1 -0
  101. package/dist/generated/schemas/connectIntegrationDto.d.ts +1 -1
  102. package/dist/generated/schemas/connectIntegrationDto.d.ts.map +1 -1
  103. package/dist/generated/schemas/connectIntegrationDtoConfig.d.ts +1 -1
  104. package/dist/generated/schemas/createTaskDto.d.ts +1 -1
  105. package/dist/generated/schemas/createTaskDto.d.ts.map +1 -1
  106. package/dist/generated/schemas/createTaskDtoInput.d.ts +1 -1
  107. package/dist/generated/schemas/eventExecutionResponseDto.d.ts +1 -0
  108. package/dist/generated/schemas/eventExecutionResponseDto.d.ts.map +1 -1
  109. package/dist/generated/schemas/eventExecutionResponseDtoTriggerPayload.d.ts +3 -0
  110. package/dist/generated/schemas/eventExecutionResponseDtoTriggerPayload.d.ts.map +1 -1
  111. package/dist/generated/schemas/eventExecutionStepResponseDto.d.ts +8 -2
  112. package/dist/generated/schemas/eventExecutionStepResponseDto.d.ts.map +1 -1
  113. package/dist/generated/schemas/eventExecutionStepResponseDtoInputPayload.d.ts +1 -0
  114. package/dist/generated/schemas/eventExecutionStepResponseDtoInputPayload.d.ts.map +1 -1
  115. package/dist/generated/schemas/eventExecutionStepResponseDtoTranslatedPayload.d.ts +1 -0
  116. package/dist/generated/schemas/eventExecutionStepResponseDtoTranslatedPayload.d.ts.map +1 -1
  117. package/dist/generated/schemas/flowStepDtoNext.d.ts +2 -1
  118. package/dist/generated/schemas/flowStepDtoNext.d.ts.map +1 -1
  119. package/dist/generated/schemas/flowStepDtoNext.js +0 -84
  120. package/dist/generated/schemas/flowStepDtoNext.js.map +1 -1
  121. package/dist/generated/schemas/index.d.ts +28 -0
  122. package/dist/generated/schemas/index.d.ts.map +1 -1
  123. package/dist/generated/schemas/index.js +28 -0
  124. package/dist/generated/schemas/index.js.map +1 -1
  125. package/dist/generated/schemas/inlineWidgetResponseDto.d.ts +6 -5
  126. package/dist/generated/schemas/inlineWidgetResponseDto.d.ts.map +1 -1
  127. package/dist/generated/schemas/inlineWidgetResponseDto.js +84 -0
  128. package/dist/generated/schemas/inlineWidgetResponseDto.js.map +1 -1
  129. package/dist/generated/schemas/integrationActionDto.d.ts +97 -0
  130. package/dist/generated/schemas/integrationActionDto.d.ts.map +1 -0
  131. package/dist/generated/schemas/integrationActionDto.js +2 -0
  132. package/dist/generated/schemas/integrationActionDto.js.map +1 -0
  133. package/dist/generated/schemas/integrationActionDtoInputSchema.d.ts +91 -0
  134. package/dist/generated/schemas/integrationActionDtoInputSchema.d.ts.map +1 -0
  135. package/dist/generated/schemas/integrationActionDtoInputSchema.js +86 -0
  136. package/dist/generated/schemas/integrationActionDtoInputSchema.js.map +1 -0
  137. package/dist/generated/schemas/integrationActionDtoOutputSchema.d.ts +91 -0
  138. package/dist/generated/schemas/integrationActionDtoOutputSchema.d.ts.map +1 -0
  139. package/dist/generated/schemas/integrationActionDtoOutputSchema.js +86 -0
  140. package/dist/generated/schemas/integrationActionDtoOutputSchema.js.map +1 -0
  141. package/dist/generated/schemas/integrationTypeInfoDto.d.ts +4 -4
  142. package/dist/generated/schemas/integrationTypeInfoDto.d.ts.map +1 -1
  143. package/dist/generated/schemas/integrationTypeInfoDtoConfigSchema.d.ts +1 -1
  144. package/dist/generated/schemas/memoryEdgeResponseDto.d.ts +4 -1
  145. package/dist/generated/schemas/memoryEdgeResponseDto.d.ts.map +1 -1
  146. package/dist/generated/schemas/memoryEdgeResponseDtoMetadata.d.ts +1 -0
  147. package/dist/generated/schemas/memoryEdgeResponseDtoMetadata.d.ts.map +1 -1
  148. package/dist/generated/schemas/messageAttachmentResponseDto.d.ts +2 -4
  149. package/dist/generated/schemas/messageAttachmentResponseDto.d.ts.map +1 -1
  150. package/dist/generated/schemas/messageAttachmentResponseDto.js +84 -0
  151. package/dist/generated/schemas/messageAttachmentResponseDto.js.map +1 -1
  152. package/dist/generated/schemas/messageResponseDto.d.ts +3 -3
  153. package/dist/generated/schemas/messageResponseDto.d.ts.map +1 -1
  154. package/dist/generated/schemas/orchestratorTaskResponseDto.d.ts +5 -1
  155. package/dist/generated/schemas/orchestratorTaskResponseDto.d.ts.map +1 -1
  156. package/dist/generated/schemas/orchestratorTaskResponseDtoInput.d.ts +3 -0
  157. package/dist/generated/schemas/orchestratorTaskResponseDtoInput.d.ts.map +1 -1
  158. package/dist/generated/schemas/orchestratorTaskResponseDtoResult.d.ts +1 -0
  159. package/dist/generated/schemas/orchestratorTaskResponseDtoResult.d.ts.map +1 -1
  160. package/dist/generated/schemas/organizationDetailResponseDto.d.ts +1 -0
  161. package/dist/generated/schemas/organizationDetailResponseDto.d.ts.map +1 -1
  162. package/dist/generated/schemas/organizationDetailResponseDtoSettings.d.ts +3 -0
  163. package/dist/generated/schemas/organizationDetailResponseDtoSettings.d.ts.map +1 -1
  164. package/dist/generated/schemas/organizationResponseDto.d.ts +1 -0
  165. package/dist/generated/schemas/organizationResponseDto.d.ts.map +1 -1
  166. package/dist/generated/schemas/organizationResponseDtoSettings.d.ts +3 -0
  167. package/dist/generated/schemas/organizationResponseDtoSettings.d.ts.map +1 -1
  168. package/dist/generated/schemas/pendingClarificationFieldDto.d.ts +103 -0
  169. package/dist/generated/schemas/pendingClarificationFieldDto.d.ts.map +1 -0
  170. package/dist/generated/schemas/pendingClarificationFieldDto.js +2 -0
  171. package/dist/generated/schemas/pendingClarificationFieldDto.js.map +1 -0
  172. package/dist/generated/schemas/pendingClarificationFieldDtoDefaultValue.d.ts +89 -0
  173. package/dist/generated/schemas/pendingClarificationFieldDtoDefaultValue.d.ts.map +1 -0
  174. package/dist/generated/schemas/pendingClarificationFieldDtoDefaultValue.js +86 -0
  175. package/dist/generated/schemas/pendingClarificationFieldDtoDefaultValue.js.map +1 -0
  176. package/dist/generated/schemas/pendingClarificationFieldDtoType.d.ts +96 -0
  177. package/dist/generated/schemas/pendingClarificationFieldDtoType.d.ts.map +1 -0
  178. package/dist/generated/schemas/pendingClarificationFieldDtoType.js +93 -0
  179. package/dist/generated/schemas/pendingClarificationFieldDtoType.js.map +1 -0
  180. package/dist/generated/schemas/pendingClarificationResponseDto.d.ts +3 -4
  181. package/dist/generated/schemas/pendingClarificationResponseDto.d.ts.map +1 -1
  182. package/dist/generated/schemas/publishEventDto.d.ts +1 -1
  183. package/dist/generated/schemas/publishEventDto.d.ts.map +1 -1
  184. package/dist/generated/schemas/publishEventDtoPayload.d.ts +1 -1
  185. package/dist/generated/schemas/recordUsageDto.d.ts +1 -1
  186. package/dist/generated/schemas/recordUsageDto.d.ts.map +1 -1
  187. package/dist/generated/schemas/recordUsageDtoMetadata.d.ts +1 -1
  188. package/dist/generated/schemas/reportWidgetErrorDto.d.ts +4 -1
  189. package/dist/generated/schemas/reportWidgetErrorDto.d.ts.map +1 -1
  190. package/dist/generated/schemas/reportWidgetErrorDtoBody.d.ts +3 -2
  191. package/dist/generated/schemas/reportWidgetErrorDtoBody.d.ts.map +1 -1
  192. package/dist/generated/schemas/submitClarificationDto.d.ts +1 -1
  193. package/dist/generated/schemas/submitClarificationDto.d.ts.map +1 -1
  194. package/dist/generated/schemas/submitClarificationDtoValues.d.ts +2 -2
  195. package/dist/generated/schemas/submitClarificationDtoValues.d.ts.map +1 -1
  196. package/dist/generated/schemas/toolHistoryEntryDto.d.ts +102 -0
  197. package/dist/generated/schemas/toolHistoryEntryDto.d.ts.map +1 -0
  198. package/dist/generated/schemas/toolHistoryEntryDto.js +2 -0
  199. package/dist/generated/schemas/toolHistoryEntryDto.js.map +1 -0
  200. package/dist/generated/schemas/toolHistoryEntryDtoInput.d.ts +91 -0
  201. package/dist/generated/schemas/toolHistoryEntryDtoInput.d.ts.map +1 -0
  202. package/dist/generated/schemas/toolHistoryEntryDtoInput.js +86 -0
  203. package/dist/generated/schemas/toolHistoryEntryDtoInput.js.map +1 -0
  204. package/dist/generated/schemas/toolHistoryEntryDtoResult.d.ts +91 -0
  205. package/dist/generated/schemas/toolHistoryEntryDtoResult.d.ts.map +1 -0
  206. package/dist/generated/schemas/toolHistoryEntryDtoResult.js +86 -0
  207. package/dist/generated/schemas/toolHistoryEntryDtoResult.js.map +1 -0
  208. package/dist/generated/schemas/toolHistoryEntryDtoType.d.ts +93 -0
  209. package/dist/generated/schemas/toolHistoryEntryDtoType.d.ts.map +1 -0
  210. package/dist/generated/schemas/toolHistoryEntryDtoType.js +90 -0
  211. package/dist/generated/schemas/toolHistoryEntryDtoType.js.map +1 -0
  212. package/dist/generated/schemas/updateAdminOrganizationDto.d.ts +1 -1
  213. package/dist/generated/schemas/updateAdminOrganizationDto.d.ts.map +1 -1
  214. package/dist/generated/schemas/updateAdminOrganizationDtoSettings.d.ts +1 -1
  215. package/dist/generated/schemas/updateColleagueDto.d.ts +30 -18
  216. package/dist/generated/schemas/updateColleagueDto.d.ts.map +1 -1
  217. package/dist/generated/schemas/updateFlowDto.d.ts +5 -3
  218. package/dist/generated/schemas/updateFlowDto.d.ts.map +1 -1
  219. package/dist/generated/schemas/updateIntegrationDto.d.ts +1 -1
  220. package/dist/generated/schemas/updateIntegrationDto.d.ts.map +1 -1
  221. package/dist/generated/schemas/updateIntegrationDtoConfig.d.ts +1 -1
  222. package/dist/generated/schemas/updateOrganizationDto.d.ts +1 -0
  223. package/dist/generated/schemas/updateOrganizationDto.d.ts.map +1 -1
  224. package/dist/generated/schemas/updateOrganizationDtoSettings.d.ts +3 -0
  225. package/dist/generated/schemas/updateOrganizationDtoSettings.d.ts.map +1 -1
  226. package/dist/generated/schemas/updatedOrganizationResponseDto.d.ts +1 -0
  227. package/dist/generated/schemas/updatedOrganizationResponseDto.d.ts.map +1 -1
  228. package/dist/generated/schemas/updatedOrganizationResponseDtoSettings.d.ts +3 -0
  229. package/dist/generated/schemas/updatedOrganizationResponseDtoSettings.d.ts.map +1 -1
  230. package/dist/generated/schemas/widgetSqlDto.d.ts +1 -1
  231. package/dist/generated/schemas/widgetSqlDto.d.ts.map +1 -1
  232. package/dist/generated/schemas/widgetSqlDtoParamsItem.d.ts +4 -3
  233. package/dist/generated/schemas/widgetSqlDtoParamsItem.d.ts.map +1 -1
  234. package/package.json +6 -1
@@ -0,0 +1,86 @@
1
+ /**
2
+ * Generated by orval v7.21.0 🍺
3
+ * Do not edit manually.
4
+ * Beeable API
5
+ * Orchestrator-first business agent platform — a multi-tenant platform where users talk to digital colleagues powered by AI.
6
+
7
+ ## Authentication flow
8
+
9
+ 1. **Register or login** — returns JWT with { sub } only (no org context).
10
+ 2. **List organizations** — GET /auth/organizations to see which orgs the user belongs to.
11
+ 3. **Select organization** — POST /auth/select-organization with an organizationId — returns new JWT with { sub, org }. Use GET /auth/me to resolve org-admin status.
12
+ 4. **Use org-scoped endpoints** — all resource endpoints require the org-scoped token.
13
+ 5. **Switch orgs** — call POST /auth/select-organization again with a different org.
14
+ 6. **Token refresh** — POST /auth/refresh preserves org context.
15
+
16
+ ## Architecture
17
+
18
+ Users create conversations with digital colleagues. Each colleague resolves its available tools and context from namespace bindings — tool availability is determined by which skills exist in the colleague's namespaces. Complex work is delegated to subagents via background tasks. Context profiles optionally pre-load condensed file/web page content into the system prompt.
19
+
20
+ ## Namespaces & access control
21
+
22
+ All resources (databases, skills, apps, files, context profiles, widgets, memories) live in namespaces. Namespaces serve triple duty: group resources, define member visibility, and control permissions via role bindings. See the `namespaces` tag for the full RBAC model.
23
+
24
+ ## Digital colleagues
25
+
26
+ Persistent AI team members with defined personas, optional model overrides, and namespace-scoped access. All conversations go through a colleague (the system colleague "Buzz" is the default). Colleagues can be invited into meetings for multi-party conversations.
27
+
28
+ ## Skills
29
+
30
+ Org-scoped capability packages that bundle markdown instructions with tool access. Skills live in namespaces — a colleague gets a skill's tools if it has `skill:use` permission in that namespace. Tool execution is guarded: the streaming loop rejects any tool call not in the resolved set.
31
+
32
+ ## Memories
33
+
34
+ Two-tier memory system: **org memories** (business facts about the org) and **user memories** (facts about individual users). Created via contemplation (post-conversation synthesis), explicit `remember_this` during conversation, or `manage_user_memory` tool. Injected into system prompts as background knowledge.
35
+
36
+ ## Billing
37
+
38
+ Credit-based billing. Usage (AI tokens) is tracked and converted to credits via exchange rates. When credits run out, expensive operations return 402.
39
+
40
+ ## File upload flow
41
+
42
+ POST /files as multipart/form-data with the file in the `file` field. The API stores the file, creates the record, and triggers condensation in a single request.
43
+
44
+ ## Dynamic databases
45
+
46
+ Each organization can have multiple databases, each backed by its own isolated PostgreSQL schema. Databases are fully SQL-driven — no abstraction layer. Use POST /databases/:id/sql for DDL and DML. Supports migrations, forking, and promoting.
47
+
48
+ ## Conversation SSE protocol
49
+
50
+ POST /conversations/:id/messages returns an SSE stream (Content-Type: text/event-stream). Events:
51
+
52
+ | Event | Data | Description |
53
+ |---|---|---|
54
+ | `text` | Raw text delta | Append to displayed message |
55
+ | `tool_use` | `{ "tool": "<name>", "status": "executing" }` | Orchestrator is calling a tool (show spinner) |
56
+ | `done` | `{ "content": "...", "retrievedUnits": [...], "usage": {...} }` | Stream complete |
57
+ | `error` | `{ "error": "..." }` | Error during streaming |
58
+
59
+ Parse SSE with `event:` and `data:` fields per the SSE spec. On `done`, stop listening and close the connection.
60
+
61
+ ## Inline widgets
62
+
63
+ Lightweight React components rendered inside conversation messages. Created by the orchestrator during streaming via the `create_widget` tool. Widgets can be saved to a library for reuse.
64
+
65
+ ## Apps
66
+
67
+ Per-org managed containers running Express. Each org gets its own container with apps served as Express routes. All app traffic is proxied through the API. Install pre-built templates or build custom apps.
68
+
69
+ ## Member management
70
+
71
+ Org admins manage their team through invitations and namespace bindings:
72
+
73
+ 1. **Invite** — POST /organizations/me/invitations with email → sends an invitation email with a link.
74
+ 2. **View invitation** — GET /invitations/:token (public, no auth) → shows org name and whether the invitee has an account.
75
+ 3. **Accept** — POST /invitations/:token/accept (auth required, email must match) → creates namespace binding. Then call POST /auth/select-organization to enter the org.
76
+ 4. **Decline** — DELETE /invitations/:token (auth required) → permanently deletes the invitation.
77
+ 5. **List members** — GET /organizations/me/members → all members with userId, email, displayName, joinedAt.
78
+ 6. **Manage access** — use namespace bindings and system roles to control permissions (see `namespaces` tag).
79
+
80
+ ## Context profiles
81
+
82
+ Context profiles are optional — a conversation can be created without one. When a profile is assigned to a namespace, colleagues with access to that namespace will have its tag and website sources loaded as condensed context into the system prompt.
83
+ * OpenAPI spec version: 2.0
84
+ */
85
+ export {};
86
+ //# sourceMappingURL=chatToolCallFunctionDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chatToolCallFunctionDto.js","sourceRoot":"","sources":["../../../src/generated/schemas/chatToolCallFunctionDto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG"}
@@ -0,0 +1,91 @@
1
+ /**
2
+ * Generated by orval v7.21.0 🍺
3
+ * Do not edit manually.
4
+ * Beeable API
5
+ * Orchestrator-first business agent platform — a multi-tenant platform where users talk to digital colleagues powered by AI.
6
+
7
+ ## Authentication flow
8
+
9
+ 1. **Register or login** — returns JWT with { sub } only (no org context).
10
+ 2. **List organizations** — GET /auth/organizations to see which orgs the user belongs to.
11
+ 3. **Select organization** — POST /auth/select-organization with an organizationId — returns new JWT with { sub, org }. Use GET /auth/me to resolve org-admin status.
12
+ 4. **Use org-scoped endpoints** — all resource endpoints require the org-scoped token.
13
+ 5. **Switch orgs** — call POST /auth/select-organization again with a different org.
14
+ 6. **Token refresh** — POST /auth/refresh preserves org context.
15
+
16
+ ## Architecture
17
+
18
+ Users create conversations with digital colleagues. Each colleague resolves its available tools and context from namespace bindings — tool availability is determined by which skills exist in the colleague's namespaces. Complex work is delegated to subagents via background tasks. Context profiles optionally pre-load condensed file/web page content into the system prompt.
19
+
20
+ ## Namespaces & access control
21
+
22
+ All resources (databases, skills, apps, files, context profiles, widgets, memories) live in namespaces. Namespaces serve triple duty: group resources, define member visibility, and control permissions via role bindings. See the `namespaces` tag for the full RBAC model.
23
+
24
+ ## Digital colleagues
25
+
26
+ Persistent AI team members with defined personas, optional model overrides, and namespace-scoped access. All conversations go through a colleague (the system colleague "Buzz" is the default). Colleagues can be invited into meetings for multi-party conversations.
27
+
28
+ ## Skills
29
+
30
+ Org-scoped capability packages that bundle markdown instructions with tool access. Skills live in namespaces — a colleague gets a skill's tools if it has `skill:use` permission in that namespace. Tool execution is guarded: the streaming loop rejects any tool call not in the resolved set.
31
+
32
+ ## Memories
33
+
34
+ Two-tier memory system: **org memories** (business facts about the org) and **user memories** (facts about individual users). Created via contemplation (post-conversation synthesis), explicit `remember_this` during conversation, or `manage_user_memory` tool. Injected into system prompts as background knowledge.
35
+
36
+ ## Billing
37
+
38
+ Credit-based billing. Usage (AI tokens) is tracked and converted to credits via exchange rates. When credits run out, expensive operations return 402.
39
+
40
+ ## File upload flow
41
+
42
+ POST /files as multipart/form-data with the file in the `file` field. The API stores the file, creates the record, and triggers condensation in a single request.
43
+
44
+ ## Dynamic databases
45
+
46
+ Each organization can have multiple databases, each backed by its own isolated PostgreSQL schema. Databases are fully SQL-driven — no abstraction layer. Use POST /databases/:id/sql for DDL and DML. Supports migrations, forking, and promoting.
47
+
48
+ ## Conversation SSE protocol
49
+
50
+ POST /conversations/:id/messages returns an SSE stream (Content-Type: text/event-stream). Events:
51
+
52
+ | Event | Data | Description |
53
+ |---|---|---|
54
+ | `text` | Raw text delta | Append to displayed message |
55
+ | `tool_use` | `{ "tool": "<name>", "status": "executing" }` | Orchestrator is calling a tool (show spinner) |
56
+ | `done` | `{ "content": "...", "retrievedUnits": [...], "usage": {...} }` | Stream complete |
57
+ | `error` | `{ "error": "..." }` | Error during streaming |
58
+
59
+ Parse SSE with `event:` and `data:` fields per the SSE spec. On `done`, stop listening and close the connection.
60
+
61
+ ## Inline widgets
62
+
63
+ Lightweight React components rendered inside conversation messages. Created by the orchestrator during streaming via the `create_widget` tool. Widgets can be saved to a library for reuse.
64
+
65
+ ## Apps
66
+
67
+ Per-org managed containers running Express. Each org gets its own container with apps served as Express routes. All app traffic is proxied through the API. Install pre-built templates or build custom apps.
68
+
69
+ ## Member management
70
+
71
+ Org admins manage their team through invitations and namespace bindings:
72
+
73
+ 1. **Invite** — POST /organizations/me/invitations with email → sends an invitation email with a link.
74
+ 2. **View invitation** — GET /invitations/:token (public, no auth) → shows org name and whether the invitee has an account.
75
+ 3. **Accept** — POST /invitations/:token/accept (auth required, email must match) → creates namespace binding. Then call POST /auth/select-organization to enter the org.
76
+ 4. **Decline** — DELETE /invitations/:token (auth required) → permanently deletes the invitation.
77
+ 5. **List members** — GET /organizations/me/members → all members with userId, email, displayName, joinedAt.
78
+ 6. **Manage access** — use namespace bindings and system roles to control permissions (see `namespaces` tag).
79
+
80
+ ## Context profiles
81
+
82
+ Context profiles are optional — a conversation can be created without one. When a profile is assigned to a namespace, colleagues with access to that namespace will have its tag and website sources loaded as condensed context into the system prompt.
83
+ * OpenAPI spec version: 2.0
84
+ */
85
+ import type { ChatToolChoiceDtoType } from './chatToolChoiceDtoType';
86
+ import type { ChatToolChoiceFunctionDto } from './chatToolChoiceFunctionDto';
87
+ export interface ChatToolChoiceDto {
88
+ type: ChatToolChoiceDtoType;
89
+ function: ChatToolChoiceFunctionDto;
90
+ }
91
+ //# sourceMappingURL=chatToolChoiceDto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chatToolChoiceDto.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/chatToolChoiceDto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAE7E,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,qBAAqB,CAAC;IAC5B,QAAQ,EAAE,yBAAyB,CAAC;CACrC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=chatToolChoiceDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chatToolChoiceDto.js","sourceRoot":"","sources":["../../../src/generated/schemas/chatToolChoiceDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,89 @@
1
+ /**
2
+ * Generated by orval v7.21.0 🍺
3
+ * Do not edit manually.
4
+ * Beeable API
5
+ * Orchestrator-first business agent platform — a multi-tenant platform where users talk to digital colleagues powered by AI.
6
+
7
+ ## Authentication flow
8
+
9
+ 1. **Register or login** — returns JWT with { sub } only (no org context).
10
+ 2. **List organizations** — GET /auth/organizations to see which orgs the user belongs to.
11
+ 3. **Select organization** — POST /auth/select-organization with an organizationId — returns new JWT with { sub, org }. Use GET /auth/me to resolve org-admin status.
12
+ 4. **Use org-scoped endpoints** — all resource endpoints require the org-scoped token.
13
+ 5. **Switch orgs** — call POST /auth/select-organization again with a different org.
14
+ 6. **Token refresh** — POST /auth/refresh preserves org context.
15
+
16
+ ## Architecture
17
+
18
+ Users create conversations with digital colleagues. Each colleague resolves its available tools and context from namespace bindings — tool availability is determined by which skills exist in the colleague's namespaces. Complex work is delegated to subagents via background tasks. Context profiles optionally pre-load condensed file/web page content into the system prompt.
19
+
20
+ ## Namespaces & access control
21
+
22
+ All resources (databases, skills, apps, files, context profiles, widgets, memories) live in namespaces. Namespaces serve triple duty: group resources, define member visibility, and control permissions via role bindings. See the `namespaces` tag for the full RBAC model.
23
+
24
+ ## Digital colleagues
25
+
26
+ Persistent AI team members with defined personas, optional model overrides, and namespace-scoped access. All conversations go through a colleague (the system colleague "Buzz" is the default). Colleagues can be invited into meetings for multi-party conversations.
27
+
28
+ ## Skills
29
+
30
+ Org-scoped capability packages that bundle markdown instructions with tool access. Skills live in namespaces — a colleague gets a skill's tools if it has `skill:use` permission in that namespace. Tool execution is guarded: the streaming loop rejects any tool call not in the resolved set.
31
+
32
+ ## Memories
33
+
34
+ Two-tier memory system: **org memories** (business facts about the org) and **user memories** (facts about individual users). Created via contemplation (post-conversation synthesis), explicit `remember_this` during conversation, or `manage_user_memory` tool. Injected into system prompts as background knowledge.
35
+
36
+ ## Billing
37
+
38
+ Credit-based billing. Usage (AI tokens) is tracked and converted to credits via exchange rates. When credits run out, expensive operations return 402.
39
+
40
+ ## File upload flow
41
+
42
+ POST /files as multipart/form-data with the file in the `file` field. The API stores the file, creates the record, and triggers condensation in a single request.
43
+
44
+ ## Dynamic databases
45
+
46
+ Each organization can have multiple databases, each backed by its own isolated PostgreSQL schema. Databases are fully SQL-driven — no abstraction layer. Use POST /databases/:id/sql for DDL and DML. Supports migrations, forking, and promoting.
47
+
48
+ ## Conversation SSE protocol
49
+
50
+ POST /conversations/:id/messages returns an SSE stream (Content-Type: text/event-stream). Events:
51
+
52
+ | Event | Data | Description |
53
+ |---|---|---|
54
+ | `text` | Raw text delta | Append to displayed message |
55
+ | `tool_use` | `{ "tool": "<name>", "status": "executing" }` | Orchestrator is calling a tool (show spinner) |
56
+ | `done` | `{ "content": "...", "retrievedUnits": [...], "usage": {...} }` | Stream complete |
57
+ | `error` | `{ "error": "..." }` | Error during streaming |
58
+
59
+ Parse SSE with `event:` and `data:` fields per the SSE spec. On `done`, stop listening and close the connection.
60
+
61
+ ## Inline widgets
62
+
63
+ Lightweight React components rendered inside conversation messages. Created by the orchestrator during streaming via the `create_widget` tool. Widgets can be saved to a library for reuse.
64
+
65
+ ## Apps
66
+
67
+ Per-org managed containers running Express. Each org gets its own container with apps served as Express routes. All app traffic is proxied through the API. Install pre-built templates or build custom apps.
68
+
69
+ ## Member management
70
+
71
+ Org admins manage their team through invitations and namespace bindings:
72
+
73
+ 1. **Invite** — POST /organizations/me/invitations with email → sends an invitation email with a link.
74
+ 2. **View invitation** — GET /invitations/:token (public, no auth) → shows org name and whether the invitee has an account.
75
+ 3. **Accept** — POST /invitations/:token/accept (auth required, email must match) → creates namespace binding. Then call POST /auth/select-organization to enter the org.
76
+ 4. **Decline** — DELETE /invitations/:token (auth required) → permanently deletes the invitation.
77
+ 5. **List members** — GET /organizations/me/members → all members with userId, email, displayName, joinedAt.
78
+ 6. **Manage access** — use namespace bindings and system roles to control permissions (see `namespaces` tag).
79
+
80
+ ## Context profiles
81
+
82
+ Context profiles are optional — a conversation can be created without one. When a profile is assigned to a namespace, colleagues with access to that namespace will have its tag and website sources loaded as condensed context into the system prompt.
83
+ * OpenAPI spec version: 2.0
84
+ */
85
+ export type ChatToolChoiceDtoType = typeof ChatToolChoiceDtoType[keyof typeof ChatToolChoiceDtoType];
86
+ export declare const ChatToolChoiceDtoType: {
87
+ readonly function: "function";
88
+ };
89
+ //# sourceMappingURL=chatToolChoiceDtoType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chatToolChoiceDtoType.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/chatToolChoiceDtoType.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AAEH,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC;AAIrG,eAAO,MAAM,qBAAqB;;CAExB,CAAC"}
@@ -0,0 +1,89 @@
1
+ /**
2
+ * Generated by orval v7.21.0 🍺
3
+ * Do not edit manually.
4
+ * Beeable API
5
+ * Orchestrator-first business agent platform — a multi-tenant platform where users talk to digital colleagues powered by AI.
6
+
7
+ ## Authentication flow
8
+
9
+ 1. **Register or login** — returns JWT with { sub } only (no org context).
10
+ 2. **List organizations** — GET /auth/organizations to see which orgs the user belongs to.
11
+ 3. **Select organization** — POST /auth/select-organization with an organizationId — returns new JWT with { sub, org }. Use GET /auth/me to resolve org-admin status.
12
+ 4. **Use org-scoped endpoints** — all resource endpoints require the org-scoped token.
13
+ 5. **Switch orgs** — call POST /auth/select-organization again with a different org.
14
+ 6. **Token refresh** — POST /auth/refresh preserves org context.
15
+
16
+ ## Architecture
17
+
18
+ Users create conversations with digital colleagues. Each colleague resolves its available tools and context from namespace bindings — tool availability is determined by which skills exist in the colleague's namespaces. Complex work is delegated to subagents via background tasks. Context profiles optionally pre-load condensed file/web page content into the system prompt.
19
+
20
+ ## Namespaces & access control
21
+
22
+ All resources (databases, skills, apps, files, context profiles, widgets, memories) live in namespaces. Namespaces serve triple duty: group resources, define member visibility, and control permissions via role bindings. See the `namespaces` tag for the full RBAC model.
23
+
24
+ ## Digital colleagues
25
+
26
+ Persistent AI team members with defined personas, optional model overrides, and namespace-scoped access. All conversations go through a colleague (the system colleague "Buzz" is the default). Colleagues can be invited into meetings for multi-party conversations.
27
+
28
+ ## Skills
29
+
30
+ Org-scoped capability packages that bundle markdown instructions with tool access. Skills live in namespaces — a colleague gets a skill's tools if it has `skill:use` permission in that namespace. Tool execution is guarded: the streaming loop rejects any tool call not in the resolved set.
31
+
32
+ ## Memories
33
+
34
+ Two-tier memory system: **org memories** (business facts about the org) and **user memories** (facts about individual users). Created via contemplation (post-conversation synthesis), explicit `remember_this` during conversation, or `manage_user_memory` tool. Injected into system prompts as background knowledge.
35
+
36
+ ## Billing
37
+
38
+ Credit-based billing. Usage (AI tokens) is tracked and converted to credits via exchange rates. When credits run out, expensive operations return 402.
39
+
40
+ ## File upload flow
41
+
42
+ POST /files as multipart/form-data with the file in the `file` field. The API stores the file, creates the record, and triggers condensation in a single request.
43
+
44
+ ## Dynamic databases
45
+
46
+ Each organization can have multiple databases, each backed by its own isolated PostgreSQL schema. Databases are fully SQL-driven — no abstraction layer. Use POST /databases/:id/sql for DDL and DML. Supports migrations, forking, and promoting.
47
+
48
+ ## Conversation SSE protocol
49
+
50
+ POST /conversations/:id/messages returns an SSE stream (Content-Type: text/event-stream). Events:
51
+
52
+ | Event | Data | Description |
53
+ |---|---|---|
54
+ | `text` | Raw text delta | Append to displayed message |
55
+ | `tool_use` | `{ "tool": "<name>", "status": "executing" }` | Orchestrator is calling a tool (show spinner) |
56
+ | `done` | `{ "content": "...", "retrievedUnits": [...], "usage": {...} }` | Stream complete |
57
+ | `error` | `{ "error": "..." }` | Error during streaming |
58
+
59
+ Parse SSE with `event:` and `data:` fields per the SSE spec. On `done`, stop listening and close the connection.
60
+
61
+ ## Inline widgets
62
+
63
+ Lightweight React components rendered inside conversation messages. Created by the orchestrator during streaming via the `create_widget` tool. Widgets can be saved to a library for reuse.
64
+
65
+ ## Apps
66
+
67
+ Per-org managed containers running Express. Each org gets its own container with apps served as Express routes. All app traffic is proxied through the API. Install pre-built templates or build custom apps.
68
+
69
+ ## Member management
70
+
71
+ Org admins manage their team through invitations and namespace bindings:
72
+
73
+ 1. **Invite** — POST /organizations/me/invitations with email → sends an invitation email with a link.
74
+ 2. **View invitation** — GET /invitations/:token (public, no auth) → shows org name and whether the invitee has an account.
75
+ 3. **Accept** — POST /invitations/:token/accept (auth required, email must match) → creates namespace binding. Then call POST /auth/select-organization to enter the org.
76
+ 4. **Decline** — DELETE /invitations/:token (auth required) → permanently deletes the invitation.
77
+ 5. **List members** — GET /organizations/me/members → all members with userId, email, displayName, joinedAt.
78
+ 6. **Manage access** — use namespace bindings and system roles to control permissions (see `namespaces` tag).
79
+
80
+ ## Context profiles
81
+
82
+ Context profiles are optional — a conversation can be created without one. When a profile is assigned to a namespace, colleagues with access to that namespace will have its tag and website sources loaded as condensed context into the system prompt.
83
+ * OpenAPI spec version: 2.0
84
+ */
85
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
86
+ export const ChatToolChoiceDtoType = {
87
+ function: 'function',
88
+ };
89
+ //# sourceMappingURL=chatToolChoiceDtoType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chatToolChoiceDtoType.js","sourceRoot":"","sources":["../../../src/generated/schemas/chatToolChoiceDtoType.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AAKH,2DAA2D;AAC3D,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,QAAQ,EAAE,UAAU;CACZ,CAAC"}
@@ -0,0 +1,88 @@
1
+ /**
2
+ * Generated by orval v7.21.0 🍺
3
+ * Do not edit manually.
4
+ * Beeable API
5
+ * Orchestrator-first business agent platform — a multi-tenant platform where users talk to digital colleagues powered by AI.
6
+
7
+ ## Authentication flow
8
+
9
+ 1. **Register or login** — returns JWT with { sub } only (no org context).
10
+ 2. **List organizations** — GET /auth/organizations to see which orgs the user belongs to.
11
+ 3. **Select organization** — POST /auth/select-organization with an organizationId — returns new JWT with { sub, org }. Use GET /auth/me to resolve org-admin status.
12
+ 4. **Use org-scoped endpoints** — all resource endpoints require the org-scoped token.
13
+ 5. **Switch orgs** — call POST /auth/select-organization again with a different org.
14
+ 6. **Token refresh** — POST /auth/refresh preserves org context.
15
+
16
+ ## Architecture
17
+
18
+ Users create conversations with digital colleagues. Each colleague resolves its available tools and context from namespace bindings — tool availability is determined by which skills exist in the colleague's namespaces. Complex work is delegated to subagents via background tasks. Context profiles optionally pre-load condensed file/web page content into the system prompt.
19
+
20
+ ## Namespaces & access control
21
+
22
+ All resources (databases, skills, apps, files, context profiles, widgets, memories) live in namespaces. Namespaces serve triple duty: group resources, define member visibility, and control permissions via role bindings. See the `namespaces` tag for the full RBAC model.
23
+
24
+ ## Digital colleagues
25
+
26
+ Persistent AI team members with defined personas, optional model overrides, and namespace-scoped access. All conversations go through a colleague (the system colleague "Buzz" is the default). Colleagues can be invited into meetings for multi-party conversations.
27
+
28
+ ## Skills
29
+
30
+ Org-scoped capability packages that bundle markdown instructions with tool access. Skills live in namespaces — a colleague gets a skill's tools if it has `skill:use` permission in that namespace. Tool execution is guarded: the streaming loop rejects any tool call not in the resolved set.
31
+
32
+ ## Memories
33
+
34
+ Two-tier memory system: **org memories** (business facts about the org) and **user memories** (facts about individual users). Created via contemplation (post-conversation synthesis), explicit `remember_this` during conversation, or `manage_user_memory` tool. Injected into system prompts as background knowledge.
35
+
36
+ ## Billing
37
+
38
+ Credit-based billing. Usage (AI tokens) is tracked and converted to credits via exchange rates. When credits run out, expensive operations return 402.
39
+
40
+ ## File upload flow
41
+
42
+ POST /files as multipart/form-data with the file in the `file` field. The API stores the file, creates the record, and triggers condensation in a single request.
43
+
44
+ ## Dynamic databases
45
+
46
+ Each organization can have multiple databases, each backed by its own isolated PostgreSQL schema. Databases are fully SQL-driven — no abstraction layer. Use POST /databases/:id/sql for DDL and DML. Supports migrations, forking, and promoting.
47
+
48
+ ## Conversation SSE protocol
49
+
50
+ POST /conversations/:id/messages returns an SSE stream (Content-Type: text/event-stream). Events:
51
+
52
+ | Event | Data | Description |
53
+ |---|---|---|
54
+ | `text` | Raw text delta | Append to displayed message |
55
+ | `tool_use` | `{ "tool": "<name>", "status": "executing" }` | Orchestrator is calling a tool (show spinner) |
56
+ | `done` | `{ "content": "...", "retrievedUnits": [...], "usage": {...} }` | Stream complete |
57
+ | `error` | `{ "error": "..." }` | Error during streaming |
58
+
59
+ Parse SSE with `event:` and `data:` fields per the SSE spec. On `done`, stop listening and close the connection.
60
+
61
+ ## Inline widgets
62
+
63
+ Lightweight React components rendered inside conversation messages. Created by the orchestrator during streaming via the `create_widget` tool. Widgets can be saved to a library for reuse.
64
+
65
+ ## Apps
66
+
67
+ Per-org managed containers running Express. Each org gets its own container with apps served as Express routes. All app traffic is proxied through the API. Install pre-built templates or build custom apps.
68
+
69
+ ## Member management
70
+
71
+ Org admins manage their team through invitations and namespace bindings:
72
+
73
+ 1. **Invite** — POST /organizations/me/invitations with email → sends an invitation email with a link.
74
+ 2. **View invitation** — GET /invitations/:token (public, no auth) → shows org name and whether the invitee has an account.
75
+ 3. **Accept** — POST /invitations/:token/accept (auth required, email must match) → creates namespace binding. Then call POST /auth/select-organization to enter the org.
76
+ 4. **Decline** — DELETE /invitations/:token (auth required) → permanently deletes the invitation.
77
+ 5. **List members** — GET /organizations/me/members → all members with userId, email, displayName, joinedAt.
78
+ 6. **Manage access** — use namespace bindings and system roles to control permissions (see `namespaces` tag).
79
+
80
+ ## Context profiles
81
+
82
+ Context profiles are optional — a conversation can be created without one. When a profile is assigned to a namespace, colleagues with access to that namespace will have its tag and website sources loaded as condensed context into the system prompt.
83
+ * OpenAPI spec version: 2.0
84
+ */
85
+ export interface ChatToolChoiceFunctionDto {
86
+ name: string;
87
+ }
88
+ //# sourceMappingURL=chatToolChoiceFunctionDto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chatToolChoiceFunctionDto.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/chatToolChoiceFunctionDto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AAEH,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -0,0 +1,86 @@
1
+ /**
2
+ * Generated by orval v7.21.0 🍺
3
+ * Do not edit manually.
4
+ * Beeable API
5
+ * Orchestrator-first business agent platform — a multi-tenant platform where users talk to digital colleagues powered by AI.
6
+
7
+ ## Authentication flow
8
+
9
+ 1. **Register or login** — returns JWT with { sub } only (no org context).
10
+ 2. **List organizations** — GET /auth/organizations to see which orgs the user belongs to.
11
+ 3. **Select organization** — POST /auth/select-organization with an organizationId — returns new JWT with { sub, org }. Use GET /auth/me to resolve org-admin status.
12
+ 4. **Use org-scoped endpoints** — all resource endpoints require the org-scoped token.
13
+ 5. **Switch orgs** — call POST /auth/select-organization again with a different org.
14
+ 6. **Token refresh** — POST /auth/refresh preserves org context.
15
+
16
+ ## Architecture
17
+
18
+ Users create conversations with digital colleagues. Each colleague resolves its available tools and context from namespace bindings — tool availability is determined by which skills exist in the colleague's namespaces. Complex work is delegated to subagents via background tasks. Context profiles optionally pre-load condensed file/web page content into the system prompt.
19
+
20
+ ## Namespaces & access control
21
+
22
+ All resources (databases, skills, apps, files, context profiles, widgets, memories) live in namespaces. Namespaces serve triple duty: group resources, define member visibility, and control permissions via role bindings. See the `namespaces` tag for the full RBAC model.
23
+
24
+ ## Digital colleagues
25
+
26
+ Persistent AI team members with defined personas, optional model overrides, and namespace-scoped access. All conversations go through a colleague (the system colleague "Buzz" is the default). Colleagues can be invited into meetings for multi-party conversations.
27
+
28
+ ## Skills
29
+
30
+ Org-scoped capability packages that bundle markdown instructions with tool access. Skills live in namespaces — a colleague gets a skill's tools if it has `skill:use` permission in that namespace. Tool execution is guarded: the streaming loop rejects any tool call not in the resolved set.
31
+
32
+ ## Memories
33
+
34
+ Two-tier memory system: **org memories** (business facts about the org) and **user memories** (facts about individual users). Created via contemplation (post-conversation synthesis), explicit `remember_this` during conversation, or `manage_user_memory` tool. Injected into system prompts as background knowledge.
35
+
36
+ ## Billing
37
+
38
+ Credit-based billing. Usage (AI tokens) is tracked and converted to credits via exchange rates. When credits run out, expensive operations return 402.
39
+
40
+ ## File upload flow
41
+
42
+ POST /files as multipart/form-data with the file in the `file` field. The API stores the file, creates the record, and triggers condensation in a single request.
43
+
44
+ ## Dynamic databases
45
+
46
+ Each organization can have multiple databases, each backed by its own isolated PostgreSQL schema. Databases are fully SQL-driven — no abstraction layer. Use POST /databases/:id/sql for DDL and DML. Supports migrations, forking, and promoting.
47
+
48
+ ## Conversation SSE protocol
49
+
50
+ POST /conversations/:id/messages returns an SSE stream (Content-Type: text/event-stream). Events:
51
+
52
+ | Event | Data | Description |
53
+ |---|---|---|
54
+ | `text` | Raw text delta | Append to displayed message |
55
+ | `tool_use` | `{ "tool": "<name>", "status": "executing" }` | Orchestrator is calling a tool (show spinner) |
56
+ | `done` | `{ "content": "...", "retrievedUnits": [...], "usage": {...} }` | Stream complete |
57
+ | `error` | `{ "error": "..." }` | Error during streaming |
58
+
59
+ Parse SSE with `event:` and `data:` fields per the SSE spec. On `done`, stop listening and close the connection.
60
+
61
+ ## Inline widgets
62
+
63
+ Lightweight React components rendered inside conversation messages. Created by the orchestrator during streaming via the `create_widget` tool. Widgets can be saved to a library for reuse.
64
+
65
+ ## Apps
66
+
67
+ Per-org managed containers running Express. Each org gets its own container with apps served as Express routes. All app traffic is proxied through the API. Install pre-built templates or build custom apps.
68
+
69
+ ## Member management
70
+
71
+ Org admins manage their team through invitations and namespace bindings:
72
+
73
+ 1. **Invite** — POST /organizations/me/invitations with email → sends an invitation email with a link.
74
+ 2. **View invitation** — GET /invitations/:token (public, no auth) → shows org name and whether the invitee has an account.
75
+ 3. **Accept** — POST /invitations/:token/accept (auth required, email must match) → creates namespace binding. Then call POST /auth/select-organization to enter the org.
76
+ 4. **Decline** — DELETE /invitations/:token (auth required) → permanently deletes the invitation.
77
+ 5. **List members** — GET /organizations/me/members → all members with userId, email, displayName, joinedAt.
78
+ 6. **Manage access** — use namespace bindings and system roles to control permissions (see `namespaces` tag).
79
+
80
+ ## Context profiles
81
+
82
+ Context profiles are optional — a conversation can be created without one. When a profile is assigned to a namespace, colleagues with access to that namespace will have its tag and website sources loaded as condensed context into the system prompt.
83
+ * OpenAPI spec version: 2.0
84
+ */
85
+ export {};
86
+ //# sourceMappingURL=chatToolChoiceFunctionDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chatToolChoiceFunctionDto.js","sourceRoot":"","sources":["../../../src/generated/schemas/chatToolChoiceFunctionDto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG"}