@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.
- package/dist/app-runtime/data.d.ts +137 -0
- package/dist/app-runtime/data.d.ts.map +1 -0
- package/dist/app-runtime/data.js +360 -0
- package/dist/app-runtime/data.js.map +1 -0
- package/dist/app-runtime/index.d.ts +37 -27
- package/dist/app-runtime/index.d.ts.map +1 -1
- package/dist/app-runtime/index.js +64 -67
- package/dist/app-runtime/index.js.map +1 -1
- package/dist/app-runtime/typed-api.d.ts +196 -0
- package/dist/app-runtime/typed-api.d.ts.map +1 -0
- package/dist/app-runtime/typed-api.js +233 -0
- package/dist/app-runtime/typed-api.js.map +1 -0
- package/dist/generated/schemas/appTemplateResponseDto.d.ts +5 -3
- package/dist/generated/schemas/appTemplateResponseDto.d.ts.map +1 -1
- package/dist/generated/schemas/appTemplateResponseDto.js +84 -0
- package/dist/generated/schemas/appTemplateResponseDto.js.map +1 -1
- package/dist/generated/schemas/chatCompletionDto.d.ts +7 -6
- package/dist/generated/schemas/chatCompletionDto.d.ts.map +1 -1
- package/dist/generated/schemas/chatCompletionDtoToolChoice.d.ts +5 -3
- package/dist/generated/schemas/chatCompletionDtoToolChoice.d.ts.map +1 -1
- package/dist/generated/schemas/chatCompletionDtoToolChoice.js +0 -84
- package/dist/generated/schemas/chatCompletionDtoToolChoice.js.map +1 -1
- package/dist/generated/schemas/chatContentPartDto.d.ts +103 -0
- package/dist/generated/schemas/chatContentPartDto.d.ts.map +1 -0
- package/dist/generated/schemas/chatContentPartDto.js +2 -0
- package/dist/generated/schemas/chatContentPartDto.js.map +1 -0
- package/dist/generated/schemas/chatContentPartDtoContent.d.ts +91 -0
- package/dist/generated/schemas/chatContentPartDtoContent.d.ts.map +1 -0
- package/dist/generated/schemas/chatContentPartDtoContent.js +86 -0
- package/dist/generated/schemas/chatContentPartDtoContent.js.map +1 -0
- package/dist/generated/schemas/chatContentPartDtoImageUrl.d.ts +91 -0
- package/dist/generated/schemas/chatContentPartDtoImageUrl.d.ts.map +1 -0
- package/dist/generated/schemas/chatContentPartDtoImageUrl.js +86 -0
- package/dist/generated/schemas/chatContentPartDtoImageUrl.js.map +1 -0
- package/dist/generated/schemas/chatContentPartDtoInput.d.ts +91 -0
- package/dist/generated/schemas/chatContentPartDtoInput.d.ts.map +1 -0
- package/dist/generated/schemas/chatContentPartDtoInput.js +86 -0
- package/dist/generated/schemas/chatContentPartDtoInput.js.map +1 -0
- package/dist/generated/schemas/chatContentPartDtoType.d.ts +95 -0
- package/dist/generated/schemas/chatContentPartDtoType.d.ts.map +1 -0
- package/dist/generated/schemas/chatContentPartDtoType.js +92 -0
- package/dist/generated/schemas/chatContentPartDtoType.js.map +1 -0
- package/dist/generated/schemas/chatMessageDto.d.ts +3 -2
- package/dist/generated/schemas/chatMessageDto.d.ts.map +1 -1
- package/dist/generated/schemas/chatMessageDtoContent.d.ts +3 -4
- package/dist/generated/schemas/chatMessageDtoContent.d.ts.map +1 -1
- package/dist/generated/schemas/chatMessageDtoContent.js +0 -84
- package/dist/generated/schemas/chatMessageDtoContent.js.map +1 -1
- package/dist/generated/schemas/chatResponseFormatDto.d.ts +89 -0
- package/dist/generated/schemas/chatResponseFormatDto.d.ts.map +1 -0
- package/dist/generated/schemas/chatResponseFormatDto.js +2 -0
- package/dist/generated/schemas/chatResponseFormatDto.js.map +1 -0
- package/dist/generated/schemas/chatResponseFormatDtoType.d.ts +90 -0
- package/dist/generated/schemas/chatResponseFormatDtoType.d.ts.map +1 -0
- package/dist/generated/schemas/chatResponseFormatDtoType.js +90 -0
- package/dist/generated/schemas/chatResponseFormatDtoType.js.map +1 -0
- package/dist/generated/schemas/chatStreamOptionsDto.d.ts +89 -0
- package/dist/generated/schemas/chatStreamOptionsDto.d.ts.map +1 -0
- package/dist/generated/schemas/chatStreamOptionsDto.js +86 -0
- package/dist/generated/schemas/chatStreamOptionsDto.js.map +1 -0
- package/dist/generated/schemas/chatToolCallDto.d.ts +92 -0
- package/dist/generated/schemas/chatToolCallDto.d.ts.map +1 -0
- package/dist/generated/schemas/chatToolCallDto.js +2 -0
- package/dist/generated/schemas/chatToolCallDto.js.map +1 -0
- package/dist/generated/schemas/chatToolCallDtoType.d.ts +89 -0
- package/dist/generated/schemas/chatToolCallDtoType.d.ts.map +1 -0
- package/dist/generated/schemas/chatToolCallDtoType.js +89 -0
- package/dist/generated/schemas/chatToolCallDtoType.js.map +1 -0
- package/dist/generated/schemas/chatToolCallFunctionDto.d.ts +90 -0
- package/dist/generated/schemas/chatToolCallFunctionDto.d.ts.map +1 -0
- package/dist/generated/schemas/chatToolCallFunctionDto.js +86 -0
- package/dist/generated/schemas/chatToolCallFunctionDto.js.map +1 -0
- package/dist/generated/schemas/chatToolChoiceDto.d.ts +91 -0
- package/dist/generated/schemas/chatToolChoiceDto.d.ts.map +1 -0
- package/dist/generated/schemas/chatToolChoiceDto.js +2 -0
- package/dist/generated/schemas/chatToolChoiceDto.js.map +1 -0
- package/dist/generated/schemas/chatToolChoiceDtoType.d.ts +89 -0
- package/dist/generated/schemas/chatToolChoiceDtoType.d.ts.map +1 -0
- package/dist/generated/schemas/chatToolChoiceDtoType.js +89 -0
- package/dist/generated/schemas/chatToolChoiceDtoType.js.map +1 -0
- package/dist/generated/schemas/chatToolChoiceFunctionDto.d.ts +88 -0
- package/dist/generated/schemas/chatToolChoiceFunctionDto.d.ts.map +1 -0
- package/dist/generated/schemas/chatToolChoiceFunctionDto.js +86 -0
- package/dist/generated/schemas/chatToolChoiceFunctionDto.js.map +1 -0
- package/dist/generated/schemas/chatToolDto.d.ts +91 -0
- package/dist/generated/schemas/chatToolDto.d.ts.map +1 -0
- package/dist/generated/schemas/chatToolDto.js +2 -0
- package/dist/generated/schemas/chatToolDto.js.map +1 -0
- package/dist/generated/schemas/chatToolDtoType.d.ts +89 -0
- package/dist/generated/schemas/chatToolDtoType.d.ts.map +1 -0
- package/dist/generated/schemas/chatToolDtoType.js +89 -0
- package/dist/generated/schemas/chatToolDtoType.js.map +1 -0
- package/dist/generated/schemas/chatToolFunctionDto.d.ts +92 -0
- package/dist/generated/schemas/chatToolFunctionDto.d.ts.map +1 -0
- package/dist/generated/schemas/chatToolFunctionDto.js +2 -0
- package/dist/generated/schemas/chatToolFunctionDto.js.map +1 -0
- package/dist/generated/schemas/chatToolFunctionDtoParameters.d.ts +91 -0
- package/dist/generated/schemas/chatToolFunctionDtoParameters.d.ts.map +1 -0
- package/dist/generated/schemas/chatToolFunctionDtoParameters.js +86 -0
- package/dist/generated/schemas/chatToolFunctionDtoParameters.js.map +1 -0
- package/dist/generated/schemas/connectIntegrationDto.d.ts +1 -1
- package/dist/generated/schemas/connectIntegrationDto.d.ts.map +1 -1
- package/dist/generated/schemas/connectIntegrationDtoConfig.d.ts +1 -1
- package/dist/generated/schemas/createTaskDto.d.ts +1 -1
- package/dist/generated/schemas/createTaskDto.d.ts.map +1 -1
- package/dist/generated/schemas/createTaskDtoInput.d.ts +1 -1
- package/dist/generated/schemas/eventExecutionResponseDto.d.ts +1 -0
- package/dist/generated/schemas/eventExecutionResponseDto.d.ts.map +1 -1
- package/dist/generated/schemas/eventExecutionResponseDtoTriggerPayload.d.ts +3 -0
- package/dist/generated/schemas/eventExecutionResponseDtoTriggerPayload.d.ts.map +1 -1
- package/dist/generated/schemas/eventExecutionStepResponseDto.d.ts +8 -2
- package/dist/generated/schemas/eventExecutionStepResponseDto.d.ts.map +1 -1
- package/dist/generated/schemas/eventExecutionStepResponseDtoInputPayload.d.ts +1 -0
- package/dist/generated/schemas/eventExecutionStepResponseDtoInputPayload.d.ts.map +1 -1
- package/dist/generated/schemas/eventExecutionStepResponseDtoTranslatedPayload.d.ts +1 -0
- package/dist/generated/schemas/eventExecutionStepResponseDtoTranslatedPayload.d.ts.map +1 -1
- package/dist/generated/schemas/flowStepDtoNext.d.ts +2 -1
- package/dist/generated/schemas/flowStepDtoNext.d.ts.map +1 -1
- package/dist/generated/schemas/flowStepDtoNext.js +0 -84
- package/dist/generated/schemas/flowStepDtoNext.js.map +1 -1
- package/dist/generated/schemas/index.d.ts +28 -0
- package/dist/generated/schemas/index.d.ts.map +1 -1
- package/dist/generated/schemas/index.js +28 -0
- package/dist/generated/schemas/index.js.map +1 -1
- package/dist/generated/schemas/inlineWidgetResponseDto.d.ts +6 -5
- package/dist/generated/schemas/inlineWidgetResponseDto.d.ts.map +1 -1
- package/dist/generated/schemas/inlineWidgetResponseDto.js +84 -0
- package/dist/generated/schemas/inlineWidgetResponseDto.js.map +1 -1
- package/dist/generated/schemas/integrationActionDto.d.ts +97 -0
- package/dist/generated/schemas/integrationActionDto.d.ts.map +1 -0
- package/dist/generated/schemas/integrationActionDto.js +2 -0
- package/dist/generated/schemas/integrationActionDto.js.map +1 -0
- package/dist/generated/schemas/integrationActionDtoInputSchema.d.ts +91 -0
- package/dist/generated/schemas/integrationActionDtoInputSchema.d.ts.map +1 -0
- package/dist/generated/schemas/integrationActionDtoInputSchema.js +86 -0
- package/dist/generated/schemas/integrationActionDtoInputSchema.js.map +1 -0
- package/dist/generated/schemas/integrationActionDtoOutputSchema.d.ts +91 -0
- package/dist/generated/schemas/integrationActionDtoOutputSchema.d.ts.map +1 -0
- package/dist/generated/schemas/integrationActionDtoOutputSchema.js +86 -0
- package/dist/generated/schemas/integrationActionDtoOutputSchema.js.map +1 -0
- package/dist/generated/schemas/integrationTypeInfoDto.d.ts +4 -4
- package/dist/generated/schemas/integrationTypeInfoDto.d.ts.map +1 -1
- package/dist/generated/schemas/integrationTypeInfoDtoConfigSchema.d.ts +1 -1
- package/dist/generated/schemas/memoryEdgeResponseDto.d.ts +4 -1
- package/dist/generated/schemas/memoryEdgeResponseDto.d.ts.map +1 -1
- package/dist/generated/schemas/memoryEdgeResponseDtoMetadata.d.ts +1 -0
- package/dist/generated/schemas/memoryEdgeResponseDtoMetadata.d.ts.map +1 -1
- package/dist/generated/schemas/messageAttachmentResponseDto.d.ts +2 -4
- package/dist/generated/schemas/messageAttachmentResponseDto.d.ts.map +1 -1
- package/dist/generated/schemas/messageAttachmentResponseDto.js +84 -0
- package/dist/generated/schemas/messageAttachmentResponseDto.js.map +1 -1
- package/dist/generated/schemas/messageResponseDto.d.ts +3 -3
- package/dist/generated/schemas/messageResponseDto.d.ts.map +1 -1
- package/dist/generated/schemas/orchestratorTaskResponseDto.d.ts +5 -1
- package/dist/generated/schemas/orchestratorTaskResponseDto.d.ts.map +1 -1
- package/dist/generated/schemas/orchestratorTaskResponseDtoInput.d.ts +3 -0
- package/dist/generated/schemas/orchestratorTaskResponseDtoInput.d.ts.map +1 -1
- package/dist/generated/schemas/orchestratorTaskResponseDtoResult.d.ts +1 -0
- package/dist/generated/schemas/orchestratorTaskResponseDtoResult.d.ts.map +1 -1
- package/dist/generated/schemas/organizationDetailResponseDto.d.ts +1 -0
- package/dist/generated/schemas/organizationDetailResponseDto.d.ts.map +1 -1
- package/dist/generated/schemas/organizationDetailResponseDtoSettings.d.ts +3 -0
- package/dist/generated/schemas/organizationDetailResponseDtoSettings.d.ts.map +1 -1
- package/dist/generated/schemas/organizationResponseDto.d.ts +1 -0
- package/dist/generated/schemas/organizationResponseDto.d.ts.map +1 -1
- package/dist/generated/schemas/organizationResponseDtoSettings.d.ts +3 -0
- package/dist/generated/schemas/organizationResponseDtoSettings.d.ts.map +1 -1
- package/dist/generated/schemas/pendingClarificationFieldDto.d.ts +103 -0
- package/dist/generated/schemas/pendingClarificationFieldDto.d.ts.map +1 -0
- package/dist/generated/schemas/pendingClarificationFieldDto.js +2 -0
- package/dist/generated/schemas/pendingClarificationFieldDto.js.map +1 -0
- package/dist/generated/schemas/pendingClarificationFieldDtoDefaultValue.d.ts +89 -0
- package/dist/generated/schemas/pendingClarificationFieldDtoDefaultValue.d.ts.map +1 -0
- package/dist/generated/schemas/pendingClarificationFieldDtoDefaultValue.js +86 -0
- package/dist/generated/schemas/pendingClarificationFieldDtoDefaultValue.js.map +1 -0
- package/dist/generated/schemas/pendingClarificationFieldDtoType.d.ts +96 -0
- package/dist/generated/schemas/pendingClarificationFieldDtoType.d.ts.map +1 -0
- package/dist/generated/schemas/pendingClarificationFieldDtoType.js +93 -0
- package/dist/generated/schemas/pendingClarificationFieldDtoType.js.map +1 -0
- package/dist/generated/schemas/pendingClarificationResponseDto.d.ts +3 -4
- package/dist/generated/schemas/pendingClarificationResponseDto.d.ts.map +1 -1
- package/dist/generated/schemas/publishEventDto.d.ts +1 -1
- package/dist/generated/schemas/publishEventDto.d.ts.map +1 -1
- package/dist/generated/schemas/publishEventDtoPayload.d.ts +1 -1
- package/dist/generated/schemas/recordUsageDto.d.ts +1 -1
- package/dist/generated/schemas/recordUsageDto.d.ts.map +1 -1
- package/dist/generated/schemas/recordUsageDtoMetadata.d.ts +1 -1
- package/dist/generated/schemas/reportWidgetErrorDto.d.ts +4 -1
- package/dist/generated/schemas/reportWidgetErrorDto.d.ts.map +1 -1
- package/dist/generated/schemas/reportWidgetErrorDtoBody.d.ts +3 -2
- package/dist/generated/schemas/reportWidgetErrorDtoBody.d.ts.map +1 -1
- package/dist/generated/schemas/submitClarificationDto.d.ts +1 -1
- package/dist/generated/schemas/submitClarificationDto.d.ts.map +1 -1
- package/dist/generated/schemas/submitClarificationDtoValues.d.ts +2 -2
- package/dist/generated/schemas/submitClarificationDtoValues.d.ts.map +1 -1
- package/dist/generated/schemas/toolHistoryEntryDto.d.ts +102 -0
- package/dist/generated/schemas/toolHistoryEntryDto.d.ts.map +1 -0
- package/dist/generated/schemas/toolHistoryEntryDto.js +2 -0
- package/dist/generated/schemas/toolHistoryEntryDto.js.map +1 -0
- package/dist/generated/schemas/toolHistoryEntryDtoInput.d.ts +91 -0
- package/dist/generated/schemas/toolHistoryEntryDtoInput.d.ts.map +1 -0
- package/dist/generated/schemas/toolHistoryEntryDtoInput.js +86 -0
- package/dist/generated/schemas/toolHistoryEntryDtoInput.js.map +1 -0
- package/dist/generated/schemas/toolHistoryEntryDtoResult.d.ts +91 -0
- package/dist/generated/schemas/toolHistoryEntryDtoResult.d.ts.map +1 -0
- package/dist/generated/schemas/toolHistoryEntryDtoResult.js +86 -0
- package/dist/generated/schemas/toolHistoryEntryDtoResult.js.map +1 -0
- package/dist/generated/schemas/toolHistoryEntryDtoType.d.ts +93 -0
- package/dist/generated/schemas/toolHistoryEntryDtoType.d.ts.map +1 -0
- package/dist/generated/schemas/toolHistoryEntryDtoType.js +90 -0
- package/dist/generated/schemas/toolHistoryEntryDtoType.js.map +1 -0
- package/dist/generated/schemas/updateAdminOrganizationDto.d.ts +1 -1
- package/dist/generated/schemas/updateAdminOrganizationDto.d.ts.map +1 -1
- package/dist/generated/schemas/updateAdminOrganizationDtoSettings.d.ts +1 -1
- package/dist/generated/schemas/updateColleagueDto.d.ts +30 -18
- package/dist/generated/schemas/updateColleagueDto.d.ts.map +1 -1
- package/dist/generated/schemas/updateFlowDto.d.ts +5 -3
- package/dist/generated/schemas/updateFlowDto.d.ts.map +1 -1
- package/dist/generated/schemas/updateIntegrationDto.d.ts +1 -1
- package/dist/generated/schemas/updateIntegrationDto.d.ts.map +1 -1
- package/dist/generated/schemas/updateIntegrationDtoConfig.d.ts +1 -1
- package/dist/generated/schemas/updateOrganizationDto.d.ts +1 -0
- package/dist/generated/schemas/updateOrganizationDto.d.ts.map +1 -1
- package/dist/generated/schemas/updateOrganizationDtoSettings.d.ts +3 -0
- package/dist/generated/schemas/updateOrganizationDtoSettings.d.ts.map +1 -1
- package/dist/generated/schemas/updatedOrganizationResponseDto.d.ts +1 -0
- package/dist/generated/schemas/updatedOrganizationResponseDto.d.ts.map +1 -1
- package/dist/generated/schemas/updatedOrganizationResponseDtoSettings.d.ts +3 -0
- package/dist/generated/schemas/updatedOrganizationResponseDtoSettings.d.ts.map +1 -1
- package/dist/generated/schemas/widgetSqlDto.d.ts +1 -1
- package/dist/generated/schemas/widgetSqlDto.d.ts.map +1 -1
- package/dist/generated/schemas/widgetSqlDtoParamsItem.d.ts +4 -3
- package/dist/generated/schemas/widgetSqlDtoParamsItem.d.ts.map +1 -1
- package/package.json +6 -1
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typed API surface for `@beeable/sdk/app-runtime`.
|
|
3
|
+
*
|
|
4
|
+
* Re-exports the orval-generated endpoint functions under short,
|
|
5
|
+
* tag-grouped namespaces so Lovable-generated app code gets full
|
|
6
|
+
* TypeScript inference on every platform API call:
|
|
7
|
+
*
|
|
8
|
+
* await beeable.api.conversations.list()
|
|
9
|
+
* await beeable.api.colleagues.create(dto)
|
|
10
|
+
* await beeable.api.llm.chat(dto)
|
|
11
|
+
*
|
|
12
|
+
* Each call routes through the shared `beeableRequest` mutator, which
|
|
13
|
+
* the app-runtime bootstrap auto-configures with the iframe's base URL
|
|
14
|
+
* and session cookie. No per-app setup required.
|
|
15
|
+
*
|
|
16
|
+
* Maintenance note: when a new controller action is added upstream,
|
|
17
|
+
* orval regenerates the function in `../generated/{tag}/{tag}.ts`.
|
|
18
|
+
* Add a one-line entry to the relevant namespace here so Lovable sees
|
|
19
|
+
* it under a friendly name.
|
|
20
|
+
*/
|
|
21
|
+
import * as _account from '../generated/account/account';
|
|
22
|
+
import * as _appTemplates from '../generated/app-templates/app-templates';
|
|
23
|
+
import * as _apps from '../generated/apps/apps';
|
|
24
|
+
import * as _auth from '../generated/auth/auth';
|
|
25
|
+
import * as _colleagues from '../generated/colleagues/colleagues';
|
|
26
|
+
import * as _conversations from '../generated/conversations/conversations';
|
|
27
|
+
import * as _eventRouter from '../generated/event-router/event-router';
|
|
28
|
+
import * as _integrations from '../generated/integrations/integrations';
|
|
29
|
+
import * as _invitations from '../generated/invitations/invitations';
|
|
30
|
+
import * as _llm from '../generated/llm/llm';
|
|
31
|
+
import * as _meetings from '../generated/meetings/meetings';
|
|
32
|
+
import * as _memories from '../generated/memories/memories';
|
|
33
|
+
import * as _namespaces from '../generated/namespaces/namespaces';
|
|
34
|
+
import * as _organizations from '../generated/organizations/organizations';
|
|
35
|
+
import * as _search from '../generated/search/search';
|
|
36
|
+
import * as _skills from '../generated/skills/skills';
|
|
37
|
+
import * as _widgets from '../generated/widgets/widgets';
|
|
38
|
+
// ── Account / billing ──────────────────────────────────────────────
|
|
39
|
+
export const account = {
|
|
40
|
+
getStatus: _account.billingControllerGetStatus,
|
|
41
|
+
updateTopupSettings: _account.billingControllerUpdateTopupSettings,
|
|
42
|
+
recordUsage: _account.billingControllerRecordUsage,
|
|
43
|
+
};
|
|
44
|
+
// ── App templates ──────────────────────────────────────────────────
|
|
45
|
+
export const appTemplates = {
|
|
46
|
+
list: _appTemplates.templatesControllerList,
|
|
47
|
+
create: _appTemplates.templatesControllerCreate,
|
|
48
|
+
get: _appTemplates.templatesControllerGet,
|
|
49
|
+
update: _appTemplates.templatesControllerUpdate,
|
|
50
|
+
delete: _appTemplates.templatesControllerDelete,
|
|
51
|
+
install: _appTemplates.templatesControllerInstall,
|
|
52
|
+
sync: _appTemplates.templatesControllerSync,
|
|
53
|
+
};
|
|
54
|
+
// ── Apps (the platform's own app management — not cross-app calls) ──
|
|
55
|
+
export const apps = {
|
|
56
|
+
list: _apps.appsControllerList,
|
|
57
|
+
create: _apps.appsControllerCreate,
|
|
58
|
+
discover: _apps.appsControllerDiscover,
|
|
59
|
+
getOpenApi: _apps.appsControllerGetAppOpenApi,
|
|
60
|
+
getSdk: _apps.appsControllerGetAppSdk,
|
|
61
|
+
catalog: _apps.appsControllerCatalog,
|
|
62
|
+
get: _apps.appsControllerGet,
|
|
63
|
+
delete: _apps.appsControllerDelete,
|
|
64
|
+
pushFiles: _apps.appsControllerPushFiles,
|
|
65
|
+
updateFromTemplate: _apps.appsControllerUpdateFromTemplate,
|
|
66
|
+
setAutoUpdate: _apps.appsControllerSetAutoUpdate,
|
|
67
|
+
setVersionPin: _apps.appsControllerSetVersionPin,
|
|
68
|
+
activate: _apps.appsControllerActivate,
|
|
69
|
+
deactivate: _apps.appsControllerDeactivate,
|
|
70
|
+
listSnapshots: _apps.appsControllerListSnapshots,
|
|
71
|
+
createSnapshot: _apps.appsControllerCreateSnapshot,
|
|
72
|
+
restoreSnapshot: _apps.appsControllerRestoreSnapshot,
|
|
73
|
+
startContainer: _apps.appsControllerStartContainer,
|
|
74
|
+
stopContainer: _apps.appsControllerStopContainer,
|
|
75
|
+
containerStatus: _apps.appsControllerContainerStatus,
|
|
76
|
+
};
|
|
77
|
+
// ── Auth ───────────────────────────────────────────────────────────
|
|
78
|
+
export const auth = {
|
|
79
|
+
register: _auth.authControllerRegister,
|
|
80
|
+
login: _auth.authControllerLogin,
|
|
81
|
+
refresh: _auth.authControllerRefresh,
|
|
82
|
+
logout: _auth.authControllerLogout,
|
|
83
|
+
listOrganizations: _auth.authControllerListOrganizations,
|
|
84
|
+
getMe: _auth.authControllerGetMe,
|
|
85
|
+
selectOrganization: _auth.authControllerSelectOrganization,
|
|
86
|
+
forgotPassword: _auth.authControllerForgotPassword,
|
|
87
|
+
resetPassword: _auth.authControllerResetPassword,
|
|
88
|
+
changePassword: _auth.authControllerChangePassword,
|
|
89
|
+
};
|
|
90
|
+
// ── Colleagues ─────────────────────────────────────────────────────
|
|
91
|
+
export const colleagues = {
|
|
92
|
+
create: _colleagues.colleaguesControllerCreate,
|
|
93
|
+
list: _colleagues.colleaguesControllerList,
|
|
94
|
+
getMetadata: _colleagues.colleaguesControllerGetMetadata,
|
|
95
|
+
getAvatar: _colleagues.colleaguesControllerGetAvatar,
|
|
96
|
+
regenerateAvatar: _colleagues.colleaguesControllerRegenerateAvatar,
|
|
97
|
+
get: _colleagues.colleaguesControllerFindOne,
|
|
98
|
+
update: _colleagues.colleaguesControllerUpdate,
|
|
99
|
+
delete: _colleagues.colleaguesControllerRemove,
|
|
100
|
+
createConversation: _colleagues.colleaguesControllerCreateConversation,
|
|
101
|
+
createServiceToken: _colleagues.colleaguesControllerCreateServiceToken,
|
|
102
|
+
listServiceTokens: _colleagues.colleaguesControllerListServiceTokens,
|
|
103
|
+
revokeServiceToken: _colleagues.colleaguesControllerRevokeServiceToken,
|
|
104
|
+
};
|
|
105
|
+
// ── Conversations ──────────────────────────────────────────────────
|
|
106
|
+
// Note: sending a message (POST /conversations/:id/messages) returns SSE
|
|
107
|
+
// and is intentionally omitted from the generated client. Use
|
|
108
|
+
// `streamConversationMessage` from the main SDK entry for that.
|
|
109
|
+
export const conversations = {
|
|
110
|
+
create: _conversations.conversationsControllerCreate,
|
|
111
|
+
list: _conversations.conversationsControllerList,
|
|
112
|
+
get: _conversations.conversationsControllerFindOne,
|
|
113
|
+
delete: _conversations.conversationsControllerRemove,
|
|
114
|
+
close: _conversations.conversationsControllerClose,
|
|
115
|
+
listMessages: _conversations.conversationsControllerListMessages,
|
|
116
|
+
createTask: _conversations.conversationsControllerCreateTask,
|
|
117
|
+
submitClarification: _conversations.conversationsControllerSubmitClarification,
|
|
118
|
+
uploadAttachments: _conversations.conversationsControllerUploadAttachments,
|
|
119
|
+
listAttachments: _conversations.conversationsControllerListAttachments,
|
|
120
|
+
promoteAttachment: _conversations.conversationsControllerPromoteAttachment,
|
|
121
|
+
listActiveColleagues: _conversations.conversationsControllerListActiveColleagues,
|
|
122
|
+
addActiveColleague: _conversations.conversationsControllerAddActiveColleague,
|
|
123
|
+
removeActiveColleague: _conversations.conversationsControllerRemoveActiveColleague,
|
|
124
|
+
};
|
|
125
|
+
// ── Event router ───────────────────────────────────────────────────
|
|
126
|
+
export const eventRouter = {
|
|
127
|
+
publishEvent: _eventRouter.eventRouterControllerPublishEvent,
|
|
128
|
+
listFlows: _eventRouter.eventRouterControllerListFlows,
|
|
129
|
+
createFlow: _eventRouter.eventRouterControllerCreateFlow,
|
|
130
|
+
getFlow: _eventRouter.eventRouterControllerGetFlow,
|
|
131
|
+
updateFlow: _eventRouter.eventRouterControllerUpdateFlow,
|
|
132
|
+
deleteFlow: _eventRouter.eventRouterControllerDeleteFlow,
|
|
133
|
+
listFlowExecutions: _eventRouter.eventRouterControllerListFlowExecutions,
|
|
134
|
+
getExecution: _eventRouter.eventRouterControllerGetExecution,
|
|
135
|
+
};
|
|
136
|
+
// ── Integrations ───────────────────────────────────────────────────
|
|
137
|
+
export const integrations = {
|
|
138
|
+
listTypes: _integrations.integrationsControllerListTypes,
|
|
139
|
+
list: _integrations.integrationsControllerList,
|
|
140
|
+
connect: _integrations.integrationsControllerConnect,
|
|
141
|
+
get: _integrations.integrationsControllerGetInstance,
|
|
142
|
+
update: _integrations.integrationsControllerUpdate,
|
|
143
|
+
disconnect: _integrations.integrationsControllerDisconnect,
|
|
144
|
+
executeAction: _integrations.integrationsControllerExecuteAction,
|
|
145
|
+
};
|
|
146
|
+
// ── Invitations ────────────────────────────────────────────────────
|
|
147
|
+
export const invitations = {
|
|
148
|
+
view: _invitations.invitationsControllerView,
|
|
149
|
+
decline: _invitations.invitationsControllerDecline,
|
|
150
|
+
accept: _invitations.invitationsControllerAccept,
|
|
151
|
+
};
|
|
152
|
+
// ── LLM ────────────────────────────────────────────────────────────
|
|
153
|
+
export const llm = {
|
|
154
|
+
chat: _llm.llmManagerControllerChatCompletion,
|
|
155
|
+
createEmbedding: _llm.createEmbedding,
|
|
156
|
+
listModels: _llm.llmManagerControllerListModels,
|
|
157
|
+
getModel: _llm.llmManagerControllerGetModel,
|
|
158
|
+
};
|
|
159
|
+
// ── Meetings ───────────────────────────────────────────────────────
|
|
160
|
+
export const meetings = {
|
|
161
|
+
create: _meetings.meetingsControllerCreate,
|
|
162
|
+
list: _meetings.meetingsControllerList,
|
|
163
|
+
get: _meetings.meetingsControllerGet,
|
|
164
|
+
delete: _meetings.meetingsControllerRemove,
|
|
165
|
+
addParticipant: _meetings.meetingsControllerAddParticipant,
|
|
166
|
+
removeParticipant: _meetings.meetingsControllerRemoveParticipant,
|
|
167
|
+
sendMessage: _meetings.meetingsControllerSendMessage,
|
|
168
|
+
};
|
|
169
|
+
// ── Memories ───────────────────────────────────────────────────────
|
|
170
|
+
export const memories = {
|
|
171
|
+
list: _memories.memoriesControllerList,
|
|
172
|
+
create: _memories.memoriesControllerCreate,
|
|
173
|
+
getGraph: _memories.memoriesControllerGetGraph,
|
|
174
|
+
getGraphStats: _memories.memoriesControllerGetGraphStats,
|
|
175
|
+
getEdges: _memories.memoriesControllerGetMemoryEdges,
|
|
176
|
+
get: _memories.memoriesControllerGetOne,
|
|
177
|
+
update: _memories.memoriesControllerUpdate,
|
|
178
|
+
delete: _memories.memoriesControllerRemove,
|
|
179
|
+
invalidate: _memories.memoriesControllerInvalidate,
|
|
180
|
+
};
|
|
181
|
+
// ── Namespaces ─────────────────────────────────────────────────────
|
|
182
|
+
export const namespaces = {
|
|
183
|
+
list: _namespaces.namespaceControllerList,
|
|
184
|
+
create: _namespaces.namespaceControllerCreate,
|
|
185
|
+
listMembers: _namespaces.namespaceControllerListMembers,
|
|
186
|
+
resolve: _namespaces.namespaceControllerResolveNamespaces,
|
|
187
|
+
checkPermission: _namespaces.namespaceControllerCheckPermission,
|
|
188
|
+
get: _namespaces.namespaceControllerGet,
|
|
189
|
+
delete: _namespaces.namespaceControllerDelete,
|
|
190
|
+
listRoles: _namespaces.namespaceControllerListRoles,
|
|
191
|
+
createRole: _namespaces.namespaceControllerCreateRole,
|
|
192
|
+
deleteRole: _namespaces.namespaceControllerDeleteRole,
|
|
193
|
+
listBindings: _namespaces.namespaceControllerListBindings,
|
|
194
|
+
createBinding: _namespaces.namespaceControllerCreateBinding,
|
|
195
|
+
removeBinding: _namespaces.namespaceControllerRemoveBinding,
|
|
196
|
+
};
|
|
197
|
+
// ── Organizations ──────────────────────────────────────────────────
|
|
198
|
+
export const organizations = {
|
|
199
|
+
create: _organizations.organizationsControllerCreate,
|
|
200
|
+
getMe: _organizations.organizationsControllerGetMe,
|
|
201
|
+
updateMe: _organizations.organizationsControllerUpdateMe,
|
|
202
|
+
createInvitation: _organizations.organizationsControllerCreateInvitation,
|
|
203
|
+
listInvitations: _organizations.organizationsControllerListInvitations,
|
|
204
|
+
revokeInvitation: _organizations.organizationsControllerRevokeInvitation,
|
|
205
|
+
listMembers: _organizations.organizationsControllerListMembers,
|
|
206
|
+
updateMemberRole: _organizations.organizationsControllerUpdateMemberRole,
|
|
207
|
+
removeMember: _organizations.organizationsControllerRemoveMember,
|
|
208
|
+
discover: _organizations.organizationsControllerDiscover,
|
|
209
|
+
onboard: _organizations.organizationsControllerOnboard,
|
|
210
|
+
};
|
|
211
|
+
// ── Search ─────────────────────────────────────────────────────────
|
|
212
|
+
export const search = {
|
|
213
|
+
conversations: _search.searchControllerSearchConversations,
|
|
214
|
+
};
|
|
215
|
+
// ── Skills ─────────────────────────────────────────────────────────
|
|
216
|
+
export const skills = {
|
|
217
|
+
list: _skills.skillsControllerList,
|
|
218
|
+
create: _skills.skillsControllerCreate,
|
|
219
|
+
get: _skills.skillsControllerFindOne,
|
|
220
|
+
update: _skills.skillsControllerUpdate,
|
|
221
|
+
delete: _skills.skillsControllerRemove,
|
|
222
|
+
};
|
|
223
|
+
// ── Inline widgets ─────────────────────────────────────────────────
|
|
224
|
+
export const widgets = {
|
|
225
|
+
executeSql: _widgets.inlineWidgetsControllerExecuteWidgetSql,
|
|
226
|
+
reportError: _widgets.inlineWidgetsControllerReportError,
|
|
227
|
+
library: _widgets.inlineWidgetsControllerLibrary,
|
|
228
|
+
update: _widgets.inlineWidgetsControllerUpdate,
|
|
229
|
+
delete: _widgets.inlineWidgetsControllerRemove,
|
|
230
|
+
listVersions: _widgets.inlineWidgetsControllerListVersions,
|
|
231
|
+
getVersion: _widgets.inlineWidgetsControllerGetVersion,
|
|
232
|
+
};
|
|
233
|
+
//# sourceMappingURL=typed-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typed-api.js","sourceRoot":"","sources":["../../src/app-runtime/typed-api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,QAAQ,MAAM,8BAA8B,CAAC;AACzD,OAAO,KAAK,aAAa,MAAM,0CAA0C,CAAC;AAC1E,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAChD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AAE,cAAc,CAAC,6BAA6B;IACpD,KAAK,EAAE,cAAc,CAAC,4BAA4B;IAClD,QAAQ,EAAE,cAAc,CAAC,+BAA+B;IACxD,gBAAgB,EAAE,cAAc,CAAC,uCAAuC;IACxE,eAAe,EAAE,cAAc,CAAC,sCAAsC;IACtE,gBAAgB,EAAE,cAAc,CAAC,uCAAuC;IACxE,WAAW,EAAE,cAAc,CAAC,kCAAkC;IAC9D,gBAAgB,EAAE,cAAc,CAAC,uCAAuC;IACxE,YAAY,EAAE,cAAc,CAAC,mCAAmC;IAChE,QAAQ,EAAE,cAAc,CAAC,+BAA+B;IACxD,OAAO,EAAE,cAAc,CAAC,8BAA8B;CACvD,CAAC;AAEF,sEAAsE;AACtE,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,aAAa,EAAE,OAAO,CAAC,mCAAmC;CAC3D,CAAC;AAEF,sEAAsE;AACtE,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI,EAAE,OAAO,CAAC,oBAAoB;IAClC,MAAM,EAAE,OAAO,CAAC,sBAAsB;IACtC,GAAG,EAAE,OAAO,CAAC,uBAAuB;IACpC,MAAM,EAAE,OAAO,CAAC,sBAAsB;IACtC,MAAM,EAAE,OAAO,CAAC,sBAAsB;CACvC,CAAC;AAEF,sEAAsE;AACtE,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,UAAU,EAAE,QAAQ,CAAC,uCAAuC;IAC5D,WAAW,EAAE,QAAQ,CAAC,kCAAkC;IACxD,OAAO,EAAE,QAAQ,CAAC,8BAA8B;IAChD,MAAM,EAAE,QAAQ,CAAC,6BAA6B;IAC9C,MAAM,EAAE,QAAQ,CAAC,6BAA6B;IAC9C,YAAY,EAAE,QAAQ,CAAC,mCAAmC;IAC1D,UAAU,EAAE,QAAQ,CAAC,iCAAiC;CACvD,CAAC"}
|
|
@@ -82,13 +82,15 @@ 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 { AppTemplateResponseDtoDisplayName } from './appTemplateResponseDtoDisplayName';
|
|
86
85
|
export interface AppTemplateResponseDto {
|
|
87
86
|
id: string;
|
|
88
87
|
/** URL-safe template name */
|
|
89
88
|
name: string;
|
|
90
|
-
/**
|
|
91
|
-
|
|
89
|
+
/**
|
|
90
|
+
* Display label
|
|
91
|
+
* @nullable
|
|
92
|
+
*/
|
|
93
|
+
displayName?: string | null;
|
|
92
94
|
/** @nullable */
|
|
93
95
|
description?: string | null;
|
|
94
96
|
category: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appTemplateResponseDto.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/appTemplateResponseDto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;
|
|
1
|
+
{"version":3,"file":"appTemplateResponseDto.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/appTemplateResponseDto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AAEH,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,6BAA6B;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,gBAAgB;IAChB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,gBAAgB;IAChB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,gBAAgB;IAChB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,gBAAgB;IAChB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,gBAAgB;IAChB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,gBAAgB;IAChB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,gBAAgB;IAChB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -1,2 +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
|
+
*/
|
|
1
85
|
export {};
|
|
2
86
|
//# sourceMappingURL=appTemplateResponseDto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appTemplateResponseDto.js","sourceRoot":"","sources":["../../../src/generated/schemas/appTemplateResponseDto.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"appTemplateResponseDto.js","sourceRoot":"","sources":["../../../src/generated/schemas/appTemplateResponseDto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG"}
|
|
@@ -83,10 +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
|
import type { ChatMessageDto } from './chatMessageDto';
|
|
86
|
-
import type {
|
|
86
|
+
import type { ChatToolDto } from './chatToolDto';
|
|
87
87
|
import type { ChatCompletionDtoToolChoice } from './chatCompletionDtoToolChoice';
|
|
88
|
-
import type {
|
|
89
|
-
import type {
|
|
88
|
+
import type { ChatResponseFormatDto } from './chatResponseFormatDto';
|
|
89
|
+
import type { ChatStreamOptionsDto } from './chatStreamOptionsDto';
|
|
90
90
|
export interface ChatCompletionDto {
|
|
91
91
|
/** Model identifier, e.g. "gpt-4o" or "claude-sonnet-4-6" */
|
|
92
92
|
model: string;
|
|
@@ -95,9 +95,10 @@ export interface ChatCompletionDto {
|
|
|
95
95
|
temperature?: number;
|
|
96
96
|
top_p?: number;
|
|
97
97
|
stream?: boolean;
|
|
98
|
-
tools?:
|
|
98
|
+
tools?: ChatToolDto[];
|
|
99
|
+
/** "auto" | "none" | "required" or a specific tool spec. */
|
|
99
100
|
tool_choice?: ChatCompletionDtoToolChoice;
|
|
100
|
-
response_format?:
|
|
101
|
-
stream_options?:
|
|
101
|
+
response_format?: ChatResponseFormatDto;
|
|
102
|
+
stream_options?: ChatStreamOptionsDto;
|
|
102
103
|
}
|
|
103
104
|
//# sourceMappingURL=chatCompletionDto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatCompletionDto.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/chatCompletionDto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"chatCompletionDto.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/chatCompletionDto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnE,MAAM,WAAW,iBAAiB;IAChC,6DAA6D;IAC7D,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC;IACtB,4DAA4D;IAC5D,WAAW,CAAC,EAAE,2BAA2B,CAAC;IAC1C,eAAe,CAAC,EAAE,qBAAqB,CAAC;IACxC,cAAc,CAAC,EAAE,oBAAoB,CAAC;CACvC"}
|
|
@@ -82,7 +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
|
-
|
|
87
|
-
|
|
85
|
+
import type { ChatToolChoiceDto } from './chatToolChoiceDto';
|
|
86
|
+
/**
|
|
87
|
+
* "auto" | "none" | "required" or a specific tool spec.
|
|
88
|
+
*/
|
|
89
|
+
export type ChatCompletionDtoToolChoice = 'auto' | 'none' | 'required' | ChatToolChoiceDto;
|
|
88
90
|
//# sourceMappingURL=chatCompletionDtoToolChoice.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatCompletionDtoToolChoice.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/chatCompletionDtoToolChoice.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;
|
|
1
|
+
{"version":3,"file":"chatCompletionDtoToolChoice.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/chatCompletionDtoToolChoice.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,iBAAiB,CAAC"}
|
|
@@ -1,86 +1,2 @@
|
|
|
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
1
|
export {};
|
|
86
2
|
//# sourceMappingURL=chatCompletionDtoToolChoice.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatCompletionDtoToolChoice.js","sourceRoot":"","sources":["../../../src/generated/schemas/chatCompletionDtoToolChoice.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chatCompletionDtoToolChoice.js","sourceRoot":"","sources":["../../../src/generated/schemas/chatCompletionDtoToolChoice.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,103 @@
|
|
|
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 { ChatContentPartDtoType } from './chatContentPartDtoType';
|
|
86
|
+
import type { ChatContentPartDtoImageUrl } from './chatContentPartDtoImageUrl';
|
|
87
|
+
import type { ChatContentPartDtoInput } from './chatContentPartDtoInput';
|
|
88
|
+
import type { ChatContentPartDtoContent } from './chatContentPartDtoContent';
|
|
89
|
+
export interface ChatContentPartDto {
|
|
90
|
+
/** Content part kind */
|
|
91
|
+
type: ChatContentPartDtoType;
|
|
92
|
+
/** Text content (when type=text) */
|
|
93
|
+
text?: string;
|
|
94
|
+
/** Image reference (when type=image_url) */
|
|
95
|
+
image_url?: ChatContentPartDtoImageUrl;
|
|
96
|
+
/** Tool use id (when type=tool_use or tool_result) */
|
|
97
|
+
tool_use_id?: string;
|
|
98
|
+
/** Tool call input (when type=tool_use) */
|
|
99
|
+
input?: ChatContentPartDtoInput;
|
|
100
|
+
/** Tool call result (when type=tool_result) */
|
|
101
|
+
content?: ChatContentPartDtoContent;
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=chatContentPartDto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatContentPartDto.d.ts","sourceRoot":"","sources":["../../../src/generated/schemas/chatContentPartDto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAE7E,MAAM,WAAW,kBAAkB;IACjC,wBAAwB;IACxB,IAAI,EAAE,sBAAsB,CAAC;IAC7B,oCAAoC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,4CAA4C;IAC5C,SAAS,CAAC,EAAE,0BAA0B,CAAC;IACvC,sDAAsD;IACtD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2CAA2C;IAC3C,KAAK,CAAC,EAAE,uBAAuB,CAAC;IAChC,+CAA+C;IAC/C,OAAO,CAAC,EAAE,yBAAyB,CAAC;CACrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatContentPartDto.js","sourceRoot":"","sources":["../../../src/generated/schemas/chatContentPartDto.ts"],"names":[],"mappings":""}
|