@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,93 @@
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
+ /**
86
+ * Kind of this history entry.
87
+ */
88
+ export type ToolHistoryEntryDtoType = typeof ToolHistoryEntryDtoType[keyof typeof ToolHistoryEntryDtoType];
89
+ export declare const ToolHistoryEntryDtoType: {
90
+ readonly tool_use: "tool_use";
91
+ readonly tool_result: "tool_result";
92
+ };
93
+ //# sourceMappingURL=toolHistoryEntryDtoType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolHistoryEntryDtoType.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/toolHistoryEntryDtoType.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AAEH;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC,MAAM,OAAO,uBAAuB,CAAC,CAAC;AAI3G,eAAO,MAAM,uBAAuB;;;CAG1B,CAAC"}
@@ -0,0 +1,90 @@
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 ToolHistoryEntryDtoType = {
87
+ tool_use: 'tool_use',
88
+ tool_result: 'tool_result',
89
+ };
90
+ //# sourceMappingURL=toolHistoryEntryDtoType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolHistoryEntryDtoType.js","sourceRoot":"","sources":["../../../src/generated/schemas/toolHistoryEntryDtoType.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AAQH,2DAA2D;AAC3D,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,aAAa;CAClB,CAAC"}
@@ -85,7 +85,7 @@ Context profiles are optional — a conversation can be created without one. Whe
85
85
  import type { UpdateAdminOrganizationDtoSettings } from './updateAdminOrganizationDtoSettings';
86
86
  export interface UpdateAdminOrganizationDto {
87
87
  name?: string;
88
- /** Arbitrary org settings (key-value pairs) */
88
+ /** Free-form org settings blob (key-value pairs). Schema is not enforced. */
89
89
  settings?: UpdateAdminOrganizationDtoSettings;
90
90
  }
91
91
  //# sourceMappingURL=updateAdminOrganizationDto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"updateAdminOrganizationDto.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/updateAdminOrganizationDto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAE/F,MAAM,WAAW,0BAA0B;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,kCAAkC,CAAC;CAC/C"}
1
+ {"version":3,"file":"updateAdminOrganizationDto.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/updateAdminOrganizationDto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAE/F,MAAM,WAAW,0BAA0B;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,kCAAkC,CAAC;CAC/C"}
@@ -83,7 +83,7 @@ Context profiles are optional — a conversation can be created without one. Whe
83
83
  * OpenAPI spec version: 2.0
84
84
  */
85
85
  /**
86
- * Arbitrary org settings (key-value pairs)
86
+ * Free-form org settings blob (key-value pairs). Schema is not enforced.
87
87
  */
88
88
  export type UpdateAdminOrganizationDtoSettings = {
89
89
  [key: string]: unknown;
@@ -84,12 +84,6 @@ Context profiles are optional — a conversation can be created without one. Whe
84
84
  */
85
85
  import type { UpdateColleagueDtoScope } from './updateColleagueDtoScope';
86
86
  import type { UpdateColleagueDtoStatus } from './updateColleagueDtoStatus';
87
- import type { UpdateColleagueDtoModel } from './updateColleagueDtoModel';
88
- import type { UpdateColleagueDtoAvatarUrl } from './updateColleagueDtoAvatarUrl';
89
- import type { UpdateColleagueDtoGender } from './updateColleagueDtoGender';
90
- import type { UpdateColleagueDtoTopicScope } from './updateColleagueDtoTopicScope';
91
- import type { UpdateColleagueDtoRefusalMessage } from './updateColleagueDtoRefusalMessage';
92
- import type { UpdateColleagueDtoInputClassifierEnabled } from './updateColleagueDtoInputClassifierEnabled';
93
87
  export interface UpdateColleagueDto {
94
88
  /** Display name for the colleague */
95
89
  name?: string;
@@ -101,17 +95,35 @@ export interface UpdateColleagueDto {
101
95
  scope?: UpdateColleagueDtoScope;
102
96
  /** Lifecycle status */
103
97
  status?: UpdateColleagueDtoStatus;
104
- /** Override default chat model (null to clear) */
105
- model?: UpdateColleagueDtoModel;
106
- /** Avatar image URL (null to clear) */
107
- avatarUrl?: UpdateColleagueDtoAvatarUrl;
108
- /** Gender of this colleague (null to clear) */
109
- gender?: UpdateColleagueDtoGender;
110
- /** Topic scope constraint (null to clear) */
111
- topicScope?: UpdateColleagueDtoTopicScope;
112
- /** Fixed refusal message for off-scope requests (null to clear) */
113
- refusalMessage?: UpdateColleagueDtoRefusalMessage;
114
- /** Enable input classifier (null to clear) */
115
- inputClassifierEnabled?: UpdateColleagueDtoInputClassifierEnabled;
98
+ /**
99
+ * Override default chat model (null to clear)
100
+ * @nullable
101
+ */
102
+ model?: string | null;
103
+ /**
104
+ * Avatar image URL (null to clear)
105
+ * @nullable
106
+ */
107
+ avatarUrl?: string | null;
108
+ /**
109
+ * Gender of this colleague (null to clear)
110
+ * @nullable
111
+ */
112
+ gender?: string | null;
113
+ /**
114
+ * Topic scope constraint (null to clear)
115
+ * @nullable
116
+ */
117
+ topicScope?: string | null;
118
+ /**
119
+ * Fixed refusal message for off-scope requests (null to clear)
120
+ * @nullable
121
+ */
122
+ refusalMessage?: string | null;
123
+ /**
124
+ * Enable input classifier (null to clear)
125
+ * @nullable
126
+ */
127
+ inputClassifierEnabled?: boolean | null;
116
128
  }
117
129
  //# sourceMappingURL=updateColleagueDto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"updateColleagueDto.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/updateColleagueDto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AACnF,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,4CAA4C,CAAC;AAE3G,MAAM,WAAW,kBAAkB;IACjC,qCAAqC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gDAAgD;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oEAAoE;IACpE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6DAA6D;IAC7D,KAAK,CAAC,EAAE,uBAAuB,CAAC;IAChC,uBAAuB;IACvB,MAAM,CAAC,EAAE,wBAAwB,CAAC;IAClC,kDAAkD;IAClD,KAAK,CAAC,EAAE,uBAAuB,CAAC;IAChC,uCAAuC;IACvC,SAAS,CAAC,EAAE,2BAA2B,CAAC;IACxC,+CAA+C;IAC/C,MAAM,CAAC,EAAE,wBAAwB,CAAC;IAClC,6CAA6C;IAC7C,UAAU,CAAC,EAAE,4BAA4B,CAAC;IAC1C,mEAAmE;IACnE,cAAc,CAAC,EAAE,gCAAgC,CAAC;IAClD,8CAA8C;IAC9C,sBAAsB,CAAC,EAAE,wCAAwC,CAAC;CACnE"}
1
+ {"version":3,"file":"updateColleagueDto.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/updateColleagueDto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAE3E,MAAM,WAAW,kBAAkB;IACjC,qCAAqC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gDAAgD;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oEAAoE;IACpE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6DAA6D;IAC7D,KAAK,CAAC,EAAE,uBAAuB,CAAC;IAChC,uBAAuB;IACvB,MAAM,CAAC,EAAE,wBAAwB,CAAC;IAClC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;OAGG;IACH,sBAAsB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CACzC"}
@@ -82,7 +82,6 @@ Org admins manage their team through invitations and namespace bindings:
82
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
83
  * OpenAPI spec version: 2.0
84
84
  */
85
- import type { UpdateFlowDtoTriggerCondition } from './updateFlowDtoTriggerCondition';
86
85
  import type { FlowStepDto } from './flowStepDto';
87
86
  export interface UpdateFlowDto {
88
87
  /** Flow name */
@@ -91,8 +90,11 @@ export interface UpdateFlowDto {
91
90
  description?: string;
92
91
  /** Event type that triggers this flow */
93
92
  triggerEvent?: string;
94
- /** JS condition expression */
95
- triggerCondition?: UpdateFlowDtoTriggerCondition;
93
+ /**
94
+ * JS condition expression (null clears the existing one)
95
+ * @nullable
96
+ */
97
+ triggerCondition?: string | null;
96
98
  /** Recursive step tree */
97
99
  steps?: FlowStepDto[];
98
100
  /** Namespace to scope this flow to */
@@ -1 +1 @@
1
- {"version":3,"file":"updateFlowDto.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/updateFlowDto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AACrF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,MAAM,WAAW,aAAa;IAC5B,gBAAgB;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yCAAyC;IACzC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8BAA8B;IAC9B,gBAAgB,CAAC,EAAE,6BAA6B,CAAC;IACjD,0BAA0B;IAC1B,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC;IACtB,sCAAsC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kCAAkC;IAClC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB"}
1
+ {"version":3,"file":"updateFlowDto.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/updateFlowDto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,MAAM,WAAW,aAAa;IAC5B,gBAAgB;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yCAAyC;IACzC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,0BAA0B;IAC1B,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC;IACtB,sCAAsC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kCAAkC;IAClC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB"}
@@ -84,7 +84,7 @@ Context profiles are optional — a conversation can be created without one. Whe
84
84
  */
85
85
  import type { UpdateIntegrationDtoConfig } from './updateIntegrationDtoConfig';
86
86
  export interface UpdateIntegrationDto {
87
- /** Updated configuration object */
87
+ /** Updated configuration object (shape matches the integration type's configSchema). */
88
88
  config?: UpdateIntegrationDtoConfig;
89
89
  }
90
90
  //# sourceMappingURL=updateIntegrationDto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"updateIntegrationDto.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/updateIntegrationDto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE/E,MAAM,WAAW,oBAAoB;IACnC,mCAAmC;IACnC,MAAM,CAAC,EAAE,0BAA0B,CAAC;CACrC"}
1
+ {"version":3,"file":"updateIntegrationDto.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/updateIntegrationDto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE/E,MAAM,WAAW,oBAAoB;IACnC,wFAAwF;IACxF,MAAM,CAAC,EAAE,0BAA0B,CAAC;CACrC"}
@@ -83,7 +83,7 @@ Context profiles are optional — a conversation can be created without one. Whe
83
83
  * OpenAPI spec version: 2.0
84
84
  */
85
85
  /**
86
- * Updated configuration object
86
+ * Updated configuration object (shape matches the integration type's configSchema).
87
87
  */
88
88
  export type UpdateIntegrationDtoConfig = {
89
89
  [key: string]: unknown;
@@ -85,6 +85,7 @@ Context profiles are optional — a conversation can be created without one. Whe
85
85
  import type { UpdateOrganizationDtoSettings } from './updateOrganizationDtoSettings';
86
86
  export interface UpdateOrganizationDto {
87
87
  name?: string;
88
+ /** Free-form org-scoped settings blob. Schema is not enforced — consumers decide what keys to store. */
88
89
  settings?: UpdateOrganizationDtoSettings;
89
90
  }
90
91
  //# sourceMappingURL=updateOrganizationDto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"updateOrganizationDto.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/updateOrganizationDto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAErF,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,6BAA6B,CAAC;CAC1C"}
1
+ {"version":3,"file":"updateOrganizationDto.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/updateOrganizationDto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAErF,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wGAAwG;IACxG,QAAQ,CAAC,EAAE,6BAA6B,CAAC;CAC1C"}
@@ -82,6 +82,9 @@ Org admins manage their team through invitations and namespace bindings:
82
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
83
  * OpenAPI spec version: 2.0
84
84
  */
85
+ /**
86
+ * Free-form org-scoped settings blob. Schema is not enforced — consumers decide what keys to store.
87
+ */
85
88
  export type UpdateOrganizationDtoSettings = {
86
89
  [key: string]: unknown;
87
90
  };
@@ -1 +1 @@
1
- {"version":3,"file":"updateOrganizationDtoSettings.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/updateOrganizationDtoSettings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AAEH,MAAM,MAAM,6BAA6B,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"updateOrganizationDtoSettings.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/updateOrganizationDtoSettings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AAEH;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC"}
@@ -87,6 +87,7 @@ import type { UpdatedOrganizationResponseDtoBilling } from './updatedOrganizatio
87
87
  export interface UpdatedOrganizationResponseDto {
88
88
  id: string;
89
89
  name: string;
90
+ /** Free-form org-scoped settings blob. Schema is not enforced — consumers decide what keys to store. */
90
91
  settings?: UpdatedOrganizationResponseDtoSettings;
91
92
  createdAt: string;
92
93
  updatedAt: string;
@@ -1 +1 @@
1
- {"version":3,"file":"updatedOrganizationResponseDto.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/updatedOrganizationResponseDto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,0CAA0C,CAAC;AACvG,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,yCAAyC,CAAC;AAErG,MAAM,WAAW,8BAA8B;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,sCAAsC,CAAC;IAClD,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB;IAChB,OAAO,CAAC,EAAE,qCAAqC,CAAC;IAChD,WAAW,EAAE,MAAM,CAAC;CACrB"}
1
+ {"version":3,"file":"updatedOrganizationResponseDto.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/updatedOrganizationResponseDto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,0CAA0C,CAAC;AACvG,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,yCAAyC,CAAC;AAErG,MAAM,WAAW,8BAA8B;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,wGAAwG;IACxG,QAAQ,CAAC,EAAE,sCAAsC,CAAC;IAClD,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB;IAChB,OAAO,CAAC,EAAE,qCAAqC,CAAC;IAChD,WAAW,EAAE,MAAM,CAAC;CACrB"}
@@ -82,6 +82,9 @@ Org admins manage their team through invitations and namespace bindings:
82
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
83
  * OpenAPI spec version: 2.0
84
84
  */
85
+ /**
86
+ * Free-form org-scoped settings blob. Schema is not enforced — consumers decide what keys to store.
87
+ */
85
88
  export type UpdatedOrganizationResponseDtoSettings = {
86
89
  [key: string]: unknown;
87
90
  };
@@ -1 +1 @@
1
- {"version":3,"file":"updatedOrganizationResponseDtoSettings.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/updatedOrganizationResponseDtoSettings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AAEH,MAAM,MAAM,sCAAsC,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"updatedOrganizationResponseDtoSettings.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/updatedOrganizationResponseDtoSettings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AAEH;;GAEG;AACH,MAAM,MAAM,sCAAsC,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC"}
@@ -86,7 +86,7 @@ import type { WidgetSqlDtoParamsItem } from './widgetSqlDtoParamsItem';
86
86
  export interface WidgetSqlDto {
87
87
  /** SQL query to execute against the widget's SQLite database. Use ? for positional parameters. */
88
88
  query: string;
89
- /** Positional parameters for the query, referenced as ? in the query string. */
89
+ /** Positional parameters for the query, referenced as ? in the query string. Each item is a JSON primitive (null supported via nullable items). */
90
90
  params?: WidgetSqlDtoParamsItem[];
91
91
  }
92
92
  //# sourceMappingURL=widgetSqlDto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"widgetSqlDto.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/widgetSqlDto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEvE,MAAM,WAAW,YAAY;IAC3B,kGAAkG;IAClG,KAAK,EAAE,MAAM,CAAC;IACd,gFAAgF;IAChF,MAAM,CAAC,EAAE,sBAAsB,EAAE,CAAC;CACnC"}
1
+ {"version":3,"file":"widgetSqlDto.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/widgetSqlDto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEvE,MAAM,WAAW,YAAY;IAC3B,kGAAkG;IAClG,KAAK,EAAE,MAAM,CAAC;IACd,mJAAmJ;IACnJ,MAAM,CAAC,EAAE,sBAAsB,EAAE,CAAC;CACnC"}
@@ -82,7 +82,8 @@ Org admins manage their team through invitations and namespace bindings:
82
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
83
  * OpenAPI spec version: 2.0
84
84
  */
85
- export type WidgetSqlDtoParamsItem = {
86
- [key: string]: unknown;
87
- };
85
+ /**
86
+ * @nullable
87
+ */
88
+ export type WidgetSqlDtoParamsItem = string | number | boolean | null;
88
89
  //# sourceMappingURL=widgetSqlDtoParamsItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"widgetSqlDtoParamsItem.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/widgetSqlDtoParamsItem.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AAEH,MAAM,MAAM,sBAAsB,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"widgetSqlDtoParamsItem.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/widgetSqlDtoParamsItem.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AAEH;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beeable/sdk",
3
- "version": "0.6.3",
3
+ "version": "0.7.1",
4
4
  "description": "Typed client and React Query hooks for the Beeable API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -38,6 +38,10 @@
38
38
  "./app-runtime": {
39
39
  "types": "./dist/app-runtime/index.d.ts",
40
40
  "import": "./dist/app-runtime/index.js"
41
+ },
42
+ "./app-runtime/data": {
43
+ "types": "./dist/app-runtime/data.d.ts",
44
+ "import": "./dist/app-runtime/data.js"
41
45
  }
42
46
  },
43
47
  "files": [
@@ -65,6 +69,7 @@
65
69
  "@tanstack/react-query": "^5.0.0",
66
70
  "@types/node": "^25.6.0",
67
71
  "@types/react": "^19.0.0",
72
+ "esbuild": "^0.25.0",
68
73
  "orval": "^7.9.0",
69
74
  "react": "^19.0.0",
70
75
  "typescript": "^5.7.0"