@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
@@ -86,7 +86,7 @@ import type { PublishEventDtoPayload } from './publishEventDtoPayload';
86
86
  export interface PublishEventDto {
87
87
  /** Event type identifier */
88
88
  event: string;
89
- /** Event payload data */
89
+ /** Event payload (free-form JSON). Shape is defined by the event producer; consumers read from it via the flow's translator functions. */
90
90
  payload: PublishEventDtoPayload;
91
91
  }
92
92
  //# sourceMappingURL=publishEventDto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"publishEventDto.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/publishEventDto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEvE,MAAM,WAAW,eAAe;IAC9B,4BAA4B;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,yBAAyB;IACzB,OAAO,EAAE,sBAAsB,CAAC;CACjC"}
1
+ {"version":3,"file":"publishEventDto.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/publishEventDto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEvE,MAAM,WAAW,eAAe;IAC9B,4BAA4B;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,0IAA0I;IAC1I,OAAO,EAAE,sBAAsB,CAAC;CACjC"}
@@ -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
- * Event payload data
86
+ * Event payload (free-form JSON). Shape is defined by the event producer; consumers read from it via the flow's translator functions.
87
87
  */
88
88
  export type PublishEventDtoPayload = {
89
89
  [key: string]: unknown;
@@ -100,7 +100,7 @@ export interface RecordUsageDto {
100
100
  provider?: string;
101
101
  /** Model identifier (e.g. claude-sonnet-4-6) */
102
102
  model?: string;
103
- /** Arbitrary metadata for audit trail */
103
+ /** Arbitrary metadata stored alongside the usage record for audit/debugging purposes. */
104
104
  metadata?: RecordUsageDtoMetadata;
105
105
  }
106
106
  //# sourceMappingURL=recordUsageDto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"recordUsageDto.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/recordUsageDto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEvE,MAAM,WAAW,cAAc;IAC7B,sBAAsB;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,iDAAiD;IACjD,YAAY,EAAE,YAAY,CAAC;IAC3B,0EAA0E;IAC1E,UAAU,EAAE,MAAM,CAAC;IACnB,mCAAmC;IACnC,SAAS,EAAE,SAAS,CAAC;IACrB,yCAAyC;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yCAAyC;IACzC,QAAQ,CAAC,EAAE,sBAAsB,CAAC;CACnC"}
1
+ {"version":3,"file":"recordUsageDto.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/recordUsageDto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEvE,MAAM,WAAW,cAAc;IAC7B,sBAAsB;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,iDAAiD;IACjD,YAAY,EAAE,YAAY,CAAC;IAC3B,0EAA0E;IAC1E,UAAU,EAAE,MAAM,CAAC;IACnB,mCAAmC;IACnC,SAAS,EAAE,SAAS,CAAC;IACrB,yCAAyC;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yFAAyF;IACzF,QAAQ,CAAC,EAAE,sBAAsB,CAAC;CACnC"}
@@ -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 metadata for audit trail
86
+ * Arbitrary metadata stored alongside the usage record for audit/debugging purposes.
87
87
  */
88
88
  export type RecordUsageDtoMetadata = {
89
89
  [key: string]: unknown;
@@ -88,7 +88,10 @@ export interface ReportWidgetErrorDto {
88
88
  method: string;
89
89
  /** API path of the failed call */
90
90
  path: string;
91
- /** Request body sent with the failed call */
91
+ /**
92
+ * Request body sent with the failed call (free-form JSON).
93
+ * @nullable
94
+ */
92
95
  body?: ReportWidgetErrorDtoBody;
93
96
  /** HTTP status code returned */
94
97
  statusCode: number;
@@ -1 +1 @@
1
- {"version":3,"file":"reportWidgetErrorDto.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/reportWidgetErrorDto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAE3E,MAAM,WAAW,oBAAoB;IACnC,yCAAyC;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,6CAA6C;IAC7C,IAAI,CAAC,EAAE,wBAAwB,CAAC;IAChC,gCAAgC;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,iCAAiC;IACjC,YAAY,EAAE,MAAM,CAAC;CACtB"}
1
+ {"version":3,"file":"reportWidgetErrorDto.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/reportWidgetErrorDto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAE3E,MAAM,WAAW,oBAAoB;IACnC,yCAAyC;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,IAAI,CAAC,EAAE,wBAAwB,CAAC;IAChC,gCAAgC;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,iCAAiC;IACjC,YAAY,EAAE,MAAM,CAAC;CACtB"}
@@ -83,9 +83,10 @@ Context profiles are optional — a conversation can be created without one. Whe
83
83
  * OpenAPI spec version: 2.0
84
84
  */
85
85
  /**
86
- * Request body sent with the failed call
86
+ * Request body sent with the failed call (free-form JSON).
87
+ * @nullable
87
88
  */
88
89
  export type ReportWidgetErrorDtoBody = {
89
90
  [key: string]: unknown;
90
- };
91
+ } | null;
91
92
  //# sourceMappingURL=reportWidgetErrorDtoBody.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reportWidgetErrorDtoBody.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/reportWidgetErrorDtoBody.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AAEH;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"reportWidgetErrorDtoBody.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/reportWidgetErrorDtoBody.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AAEH;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,GAAG,IAAI,CAAC"}
@@ -84,7 +84,7 @@ Context profiles are optional — a conversation can be created without one. Whe
84
84
  */
85
85
  import type { SubmitClarificationDtoValues } from './submitClarificationDtoValues';
86
86
  export interface SubmitClarificationDto {
87
- /** Form field values keyed by field name */
87
+ /** Form field values keyed by the field name defined in the pending clarification. */
88
88
  values?: SubmitClarificationDtoValues;
89
89
  /** Set to true if the user dismissed the form */
90
90
  cancelled?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"submitClarificationDto.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/submitClarificationDto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAEnF,MAAM,WAAW,sBAAsB;IACrC,4CAA4C;IAC5C,MAAM,CAAC,EAAE,4BAA4B,CAAC;IACtC,iDAAiD;IACjD,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB"}
1
+ {"version":3,"file":"submitClarificationDto.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/submitClarificationDto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAEnF,MAAM,WAAW,sBAAsB;IACrC,sFAAsF;IACtF,MAAM,CAAC,EAAE,4BAA4B,CAAC;IACtC,iDAAiD;IACjD,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB"}
@@ -83,9 +83,9 @@ Context profiles are optional — a conversation can be created without one. Whe
83
83
  * OpenAPI spec version: 2.0
84
84
  */
85
85
  /**
86
- * Form field values keyed by field name
86
+ * Form field values keyed by the field name defined in the pending clarification.
87
87
  */
88
88
  export type SubmitClarificationDtoValues = {
89
- [key: string]: unknown;
89
+ [key: string]: string | number | boolean;
90
90
  };
91
91
  //# sourceMappingURL=submitClarificationDtoValues.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"submitClarificationDtoValues.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/submitClarificationDtoValues.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AAEH;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"submitClarificationDtoValues.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/submitClarificationDtoValues.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AAEH;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;CAAC,CAAC"}
@@ -0,0 +1,102 @@
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 { ToolHistoryEntryDtoType } from './toolHistoryEntryDtoType';
86
+ import type { ToolHistoryEntryDtoInput } from './toolHistoryEntryDtoInput';
87
+ import type { ToolHistoryEntryDtoResult } from './toolHistoryEntryDtoResult';
88
+ export interface ToolHistoryEntryDto {
89
+ /** Kind of this history entry. */
90
+ type: ToolHistoryEntryDtoType;
91
+ /** Tool name (set on tool_use entries). */
92
+ name?: string;
93
+ /** Id linking a tool_use to its matching tool_result. */
94
+ toolUseId?: string;
95
+ /** Input the LLM passed to the tool (set on tool_use entries). */
96
+ input?: ToolHistoryEntryDtoInput;
97
+ /** Result the tool returned (set on tool_result entries). */
98
+ result?: ToolHistoryEntryDtoResult;
99
+ /** True when the tool_result represents a failure. */
100
+ isError?: boolean;
101
+ }
102
+ //# sourceMappingURL=toolHistoryEntryDto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolHistoryEntryDto.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/toolHistoryEntryDto.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,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAE7E,MAAM,WAAW,mBAAmB;IAClC,kCAAkC;IAClC,IAAI,EAAE,uBAAuB,CAAC;IAC9B,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kEAAkE;IAClE,KAAK,CAAC,EAAE,wBAAwB,CAAC;IACjC,6DAA6D;IAC7D,MAAM,CAAC,EAAE,yBAAyB,CAAC;IACnC,sDAAsD;IACtD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=toolHistoryEntryDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolHistoryEntryDto.js","sourceRoot":"","sources":["../../../src/generated/schemas/toolHistoryEntryDto.ts"],"names":[],"mappings":""}
@@ -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
+ /**
86
+ * Input the LLM passed to the tool (set on tool_use entries).
87
+ */
88
+ export type ToolHistoryEntryDtoInput = {
89
+ [key: string]: unknown;
90
+ };
91
+ //# sourceMappingURL=toolHistoryEntryDtoInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolHistoryEntryDtoInput.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/toolHistoryEntryDtoInput.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AAEH;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC"}
@@ -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=toolHistoryEntryDtoInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolHistoryEntryDtoInput.js","sourceRoot":"","sources":["../../../src/generated/schemas/toolHistoryEntryDtoInput.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
+ /**
86
+ * Result the tool returned (set on tool_result entries).
87
+ */
88
+ export type ToolHistoryEntryDtoResult = {
89
+ [key: string]: unknown;
90
+ };
91
+ //# sourceMappingURL=toolHistoryEntryDtoResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolHistoryEntryDtoResult.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/toolHistoryEntryDtoResult.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AAEH;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC"}
@@ -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=toolHistoryEntryDtoResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolHistoryEntryDtoResult.js","sourceRoot":"","sources":["../../../src/generated/schemas/toolHistoryEntryDtoResult.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG"}