Skip to content
Closed
1 change: 1 addition & 0 deletions docs/apps-engine-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ To make this migration easier to understand and review, we're using a stacked PR
- [40395](https://github.com/RocketChat/Rocket.Chat/pull/40395) The feature branch itself. It will accumulate the changes of the whole stack.
- [40183](https://github.com/RocketChat/Rocket.Chat/pull/40183) Replaces `AppPackageParser.getEngineVersion()` - which resolved the version by traversing the filesystem relative to `__dirname` - with a direct import of `ENGINE_VERSION`. This will support the migration of the `AppPackageParser` class itself.
- [40184](https://github.com/RocketChat/Rocket.Chat/pull/40184) Copies all relevant source files from `packages/apps-engine/src/server`, `packages/apps-engine/src/client`, `packages/apps-engine/deno-runtime`, `packages/apps-engine/tests` and `packages/apps-engine/scripts` into their corresponding path at `packages/apps`.
- [40185](https://github.com/RocketChat/Rocket.Chat/pull/40185) Adapts the path resolution of the apps-engine package for the deno runtime
3 changes: 3 additions & 0 deletions packages/apps/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
.deno-cache/
/tests/test-data/dbs

# File generated at runtime
deno.runtime.jsonc
10 changes: 8 additions & 2 deletions packages/apps/deno-runtime/deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"imports": {
"@msgpack/msgpack": "npm:@msgpack/msgpack@3.0.0-beta2",
"@rocket.chat/apps-engine/": "./../src/",
"@rocket.chat/ui-kit": "npm:@rocket.chat/ui-kit@^0.31.22",
"@rocket.chat/apps-engine/": "../../../packages/apps-engine/",
"@rocket.chat/apps/": "../",
"@std/cli": "jsr:@std/cli@^1.0.9",
"@std/io": "jsr:@std/io@^0.225.3",
"@std/streams": "jsr:@std/streams@^1.0.16",
Expand All @@ -13,7 +14,7 @@
"stack-trace": "npm:stack-trace@0.0.10",
"uuid": "npm:uuid@8.3.2"
},
"unstable": ["detect-cjs"],
"unstable": ["detect-cjs","sloppy-imports"],
"tasks": {
"test": "deno test --no-check --allow-read=../../../,/tmp --allow-write=/tmp"
},
Expand All @@ -22,5 +23,10 @@
"useTabs": true,
"indentWidth": 4,
"singleQuote": true
},
"lint": {
"rules": {
"exclude": ["no-sloppy-imports"]
}
}
}
2 changes: 1 addition & 1 deletion packages/apps/deno-runtime/handlers/api-handler.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { IApiEndpoint } from '@rocket.chat/apps-engine/definition/api/IApiEndpoint.ts';
import type { IApiEndpoint } from '@rocket.chat/apps-engine/definition/api/IApiEndpoint';
import { Defined, JsonRpcError } from 'jsonrpc-lite';

import { AppObjectRegistry } from '../AppObjectRegistry.ts';
Expand Down
2 changes: 1 addition & 1 deletion packages/apps/deno-runtime/handlers/app/construct.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Socket } from 'node:net';

import type { IParseAppPackageResult } from '@rocket.chat/apps-engine/server/compiler/IParseAppPackageResult.ts';
import type { IParseAppPackageResult } from '@rocket.chat/apps/dist/server/compiler/IParseAppPackageResult';

import { AppObjectRegistry } from '../../AppObjectRegistry.ts';
import { require } from '../../lib/require.ts';
Expand Down
2 changes: 1 addition & 1 deletion packages/apps/deno-runtime/handlers/app/handleGetStatus.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { App } from '@rocket.chat/apps-engine/definition/App.ts';
import type { App } from '@rocket.chat/apps-engine/definition/App';

import { AppObjectRegistry } from '../../AppObjectRegistry.ts';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { App } from '@rocket.chat/apps-engine/definition/App.ts';
import type { App } from '@rocket.chat/apps-engine/definition/App';

import { AppObjectRegistry } from '../../AppObjectRegistry.ts';
import { AppAccessorsInstance } from '../../lib/accessors/mod.ts';
Expand Down
2 changes: 1 addition & 1 deletion packages/apps/deno-runtime/handlers/app/handleOnDisable.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { App } from '@rocket.chat/apps-engine/definition/App.ts';
import type { App } from '@rocket.chat/apps-engine/definition/App';

import { AppObjectRegistry } from '../../AppObjectRegistry.ts';
import { AppAccessorsInstance } from '../../lib/accessors/mod.ts';
Expand Down
2 changes: 1 addition & 1 deletion packages/apps/deno-runtime/handlers/app/handleOnEnable.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { App } from '@rocket.chat/apps-engine/definition/App.ts';
import type { App } from '@rocket.chat/apps-engine/definition/App';

import { AppObjectRegistry } from '../../AppObjectRegistry.ts';
import { AppAccessorsInstance } from '../../lib/accessors/mod.ts';
Expand Down
2 changes: 1 addition & 1 deletion packages/apps/deno-runtime/handlers/app/handleOnInstall.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { App } from '@rocket.chat/apps-engine/definition/App.ts';
import type { App } from '@rocket.chat/apps-engine/definition/App';

import { AppObjectRegistry } from '../../AppObjectRegistry.ts';
import { AppAccessorsInstance } from '../../lib/accessors/mod.ts';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { App } from '@rocket.chat/apps-engine/definition/App.ts';
import type { App } from '@rocket.chat/apps-engine/definition/App';

import { AppObjectRegistry } from '../../AppObjectRegistry.ts';
import { AppAccessorsInstance } from '../../lib/accessors/mod.ts';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { App } from '@rocket.chat/apps-engine/definition/App.ts';
import type { App } from '@rocket.chat/apps-engine/definition/App';

import { AppObjectRegistry } from '../../AppObjectRegistry.ts';
import { AppAccessorsInstance } from '../../lib/accessors/mod.ts';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { App } from '@rocket.chat/apps-engine/definition/App.ts';
import type { App } from '@rocket.chat/apps-engine/definition/App';

import { AppObjectRegistry } from '../../AppObjectRegistry.ts';
import { AppAccessorsInstance } from '../../lib/accessors/mod.ts';
Expand Down
2 changes: 1 addition & 1 deletion packages/apps/deno-runtime/handlers/app/handleOnUpdate.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { App } from '@rocket.chat/apps-engine/definition/App.ts';
import type { App } from '@rocket.chat/apps-engine/definition/App';

import { AppObjectRegistry } from '../../AppObjectRegistry.ts';
import { AppAccessorsInstance } from '../../lib/accessors/mod.ts';
Expand Down
4 changes: 2 additions & 2 deletions packages/apps/deno-runtime/handlers/app/handleSetStatus.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { App } from '@rocket.chat/apps-engine/definition/App.ts';
import type { AppStatus as _AppStatus } from '@rocket.chat/apps-engine/definition/AppStatus.ts';
import type { App } from '@rocket.chat/apps-engine/definition/App';
import type { AppStatus as _AppStatus } from '@rocket.chat/apps-engine/definition/AppStatus';

import { AppObjectRegistry } from '../../AppObjectRegistry.ts';
import { require } from '../../lib/require.ts';
Expand Down
8 changes: 4 additions & 4 deletions packages/apps/deno-runtime/handlers/app/handleUploadEvents.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Buffer } from 'node:buffer';

import type { App } from '@rocket.chat/apps-engine/definition/App.ts';
import { AppsEngineException } from '@rocket.chat/apps-engine/definition/exceptions/AppsEngineException.ts';
import type { IFileUploadContext } from '@rocket.chat/apps-engine/definition/uploads/IFileUploadContext.ts'
import type { IUploadDetails } from '@rocket.chat/apps-engine/definition/uploads/IUploadDetails.ts'
import type { App } from '@rocket.chat/apps-engine/definition/App';
import { AppsEngineException } from '@rocket.chat/apps-engine/definition/exceptions/AppsEngineException';
import type { IFileUploadContext } from '@rocket.chat/apps-engine/definition/uploads/IFileUploadContext'
import type { IUploadDetails } from '@rocket.chat/apps-engine/definition/uploads/IUploadDetails'
import { toArrayBuffer } from '@std/streams';
import { Defined, JsonRpcError } from 'jsonrpc-lite';

Expand Down
2 changes: 1 addition & 1 deletion packages/apps/deno-runtime/handlers/lib/assertions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { App } from '@rocket.chat/apps-engine/definition/App.ts';
import type { App } from '@rocket.chat/apps-engine/definition/App';
import { JsonRpcError } from 'jsonrpc-lite';

/**
Expand Down
8 changes: 4 additions & 4 deletions packages/apps/deno-runtime/handlers/listener/handler.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { App } from '@rocket.chat/apps-engine/definition/App.ts';
import type { IMessage } from '@rocket.chat/apps-engine/definition/messages/IMessage.ts';
import type { IRoom } from '@rocket.chat/apps-engine/definition/rooms/IRoom.ts';
import type { AppsEngineException as _AppsEngineException } from '@rocket.chat/apps-engine/definition/exceptions/AppsEngineException.ts';
import type { App } from '@rocket.chat/apps-engine/definition/App';
import type { IMessage } from '@rocket.chat/apps-engine/definition/messages/IMessage';
import type { IRoom } from '@rocket.chat/apps-engine/definition/rooms/IRoom';
import type { AppsEngineException as _AppsEngineException } from '@rocket.chat/apps-engine/definition/exceptions/AppsEngineException';
import { Defined, JsonRpcError } from 'jsonrpc-lite';

import { AppObjectRegistry } from '../../AppObjectRegistry.ts';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { IOutboundMessageProviders } from '@rocket.chat/apps-engine/definition/outboundCommunication/IOutboundCommsProvider.ts';
import type { IOutboundMessageProviders } from '@rocket.chat/apps-engine/definition/outboundCommunication/IOutboundCommsProvider';
import { JsonRpcError, Defined } from 'jsonrpc-lite';

import { AppObjectRegistry } from '../AppObjectRegistry.ts';
Expand Down
4 changes: 2 additions & 2 deletions packages/apps/deno-runtime/handlers/scheduler-handler.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { App } from '@rocket.chat/apps-engine/definition/App.ts';
import type { IProcessor } from '@rocket.chat/apps-engine/definition/scheduler/IProcessor.ts';
import type { App } from '@rocket.chat/apps-engine/definition/App';
import type { IProcessor } from '@rocket.chat/apps-engine/definition/scheduler/IProcessor';
import { Defined, JsonRpcError } from 'jsonrpc-lite';

import { AppObjectRegistry } from '../AppObjectRegistry.ts';
Expand Down
29 changes: 11 additions & 18 deletions packages/apps/deno-runtime/handlers/slashcommand-handler.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
import type { IRoom } from '@rocket.chat/apps-engine/definition/rooms/IRoom.ts';
import type { ISlashCommand } from '@rocket.chat/apps-engine/definition/slashcommands/ISlashCommand.ts';
import type { SlashCommandContext as _SlashCommandContext } from '@rocket.chat/apps-engine/definition/slashcommands/SlashCommandContext.ts';
import type { Room as _Room } from '@rocket.chat/apps-engine/server/rooms/Room.ts';
import type { IRoom } from '@rocket.chat/apps-engine/definition/rooms/IRoom';
import type { ISlashCommand } from '@rocket.chat/apps-engine/definition/slashcommands/ISlashCommand';
import { SlashCommandContext } from '@rocket.chat/apps-engine/definition/slashcommands/SlashCommandContext';
import { Defined, JsonRpcError } from 'jsonrpc-lite';

import { AppObjectRegistry } from '../AppObjectRegistry.ts';
import { AppAccessors, AppAccessorsInstance } from '../lib/accessors/mod.ts';
import { require } from '../lib/require.ts';
import createRoom from '../lib/roomFactory.ts';
import { RequestContext } from '../lib/requestContext.ts';
import { wrapComposedApp } from '../lib/wrapAppForRequest.ts';

// For some reason Deno couldn't understand the typecast to the original interfaces and said it wasn't a constructor type
const { SlashCommandContext } = require('@rocket.chat/apps-engine/definition/slashcommands/SlashCommandContext.js') as {
SlashCommandContext: typeof _SlashCommandContext;
};

export default async function slashCommandHandler(request: RequestContext): Promise<JsonRpcError | Defined> {
const { method: call, params } = request;
const { logger } = request.context;
Expand Down Expand Up @@ -76,11 +69,11 @@ export function handleExecutor(deps: Deps, command: ISlashCommand, method: 'exec
const { sender, room, params: args, threadId, triggerId } = params[0] as Record<string, unknown>;

const context = new SlashCommandContext(
sender as _SlashCommandContext['sender'],
sender as SlashCommandContext['sender'],
createRoom(room as IRoom, deps.AppAccessorsInstance.getSenderFn()),
args as _SlashCommandContext['params'],
threadId as _SlashCommandContext['threadId'],
triggerId as _SlashCommandContext['triggerId'],
args as SlashCommandContext['params'],
threadId as SlashCommandContext['threadId'],
triggerId as SlashCommandContext['triggerId'],
);

return executor.apply(wrapComposedApp(command, deps.request), [
Expand Down Expand Up @@ -109,11 +102,11 @@ export function handlePreviewItem(deps: Deps, command: ISlashCommand, params: un
const [previewItem, { sender, room, params: args, threadId, triggerId }] = params as [Record<string, unknown>, Record<string, unknown>];

const context = new SlashCommandContext(
sender as _SlashCommandContext['sender'],
sender as SlashCommandContext['sender'],
createRoom(room as IRoom, deps.AppAccessorsInstance.getSenderFn()),
args as _SlashCommandContext['params'],
threadId as _SlashCommandContext['threadId'],
triggerId as _SlashCommandContext['triggerId'],
args as SlashCommandContext['params'],
threadId as SlashCommandContext['threadId'],
triggerId as SlashCommandContext['triggerId'],
);

return command.executePreviewItem.call(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// deno-lint-ignore-file no-explicit-any
import type { IApiEndpoint } from '@rocket.chat/apps-engine/definition/api/IApiEndpoint.ts';
import type { IApiEndpoint } from '@rocket.chat/apps-engine/definition/api/IApiEndpoint';
import { assertEquals, assertObjectMatch } from 'https://deno.land/std@0.203.0/assert/mod.ts';
import { beforeEach, describe, it } from 'https://deno.land/std@0.203.0/testing/bdd.ts';
import { spy } from 'https://deno.land/std@0.203.0/testing/mock.ts';
Expand Down
2 changes: 1 addition & 1 deletion packages/apps/deno-runtime/handlers/tests/helpers/mod.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { App } from '@rocket.chat/apps-engine/definition/App.ts';
import type { App } from '@rocket.chat/apps-engine/definition/App';

import { Logger } from '../../../lib/logger.ts';
import { RequestDescriptor } from '../../../lib/messenger.ts';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// deno-lint-ignore-file no-explicit-any
import { Buffer } from 'node:buffer';

import type { App } from '@rocket.chat/apps-engine/definition/App.ts';
import type { IPreFileUpload } from '@rocket.chat/apps-engine/definition/uploads/IPreFileUpload.ts';
import type { IUploadDetails } from '@rocket.chat/apps-engine/definition/uploads/IUploadDetails.ts';
import type { App } from '@rocket.chat/apps-engine/definition/App';
import type { IPreFileUpload } from '@rocket.chat/apps-engine/definition/uploads/IPreFileUpload';
import type { IUploadDetails } from '@rocket.chat/apps-engine/definition/uploads/IUploadDetails';
import { assertInstanceOf, assertNotInstanceOf, assertEquals, assertStringIncludes } from 'https://deno.land/std@0.203.0/assert/mod.ts';
import { afterEach, beforeEach, describe, it } from 'https://deno.land/std@0.203.0/testing/bdd.ts';
import { assertSpyCalls, spy } from 'https://deno.land/std@0.203.0/testing/mock.ts';
Expand Down
2 changes: 1 addition & 1 deletion packages/apps/deno-runtime/handlers/uikit/handler.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { App } from '@rocket.chat/apps-engine/definition/App.ts';
import type { App } from '@rocket.chat/apps-engine/definition/App';
import { Defined, JsonRpcError } from 'jsonrpc-lite';

import { require } from '../../lib/require.ts';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { IVideoConfProvider } from '@rocket.chat/apps-engine/definition/videoConfProviders/IVideoConfProvider.ts';
import type { IVideoConfProvider } from '@rocket.chat/apps-engine/definition/videoConfProviders/IVideoConfProvider';
import { Defined, JsonRpcError } from 'jsonrpc-lite';

import { AppObjectRegistry } from '../AppObjectRegistry.ts';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type {
IImageBlock,
IInputBlock,
ISectionBlock,
} from '@rocket.chat/apps-engine/definition/uikit/blocks/Blocks.ts';
} from '@rocket.chat/apps-engine/definition/uikit/blocks/Blocks';
import type {
BlockElementType as _BlockElementType,
IBlockElement,
Expand All @@ -23,8 +23,8 @@ import type {
IPlainTextInputElement,
ISelectElement,
IStaticSelectElement,
} from '@rocket.chat/apps-engine/definition/uikit/blocks/Elements.ts';
import type { ITextObject, TextObjectType as _TextObjectType } from '@rocket.chat/apps-engine/definition/uikit/blocks/Objects.ts';
} from '@rocket.chat/apps-engine/definition/uikit/blocks/Elements';
import type { ITextObject, TextObjectType as _TextObjectType } from '@rocket.chat/apps-engine/definition/uikit/blocks/Objects';

import { AppObjectRegistry } from '../../../AppObjectRegistry.ts';
import { require } from '../../../lib/require.ts';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { IDiscussionBuilder as _IDiscussionBuilder } from '@rocket.chat/apps-engine/definition/accessors/IDiscussionBuilder.ts';
import type { IMessage } from '@rocket.chat/apps-engine/definition/messages/IMessage.ts';
import type { IRoom } from '@rocket.chat/apps-engine/definition/rooms/IRoom.ts';
import type { IRoomBuilder } from '@rocket.chat/apps-engine/definition/accessors/IRoomBuilder.ts';
import type { IDiscussionBuilder as _IDiscussionBuilder } from '@rocket.chat/apps-engine/definition/accessors/IDiscussionBuilder';
import type { IMessage } from '@rocket.chat/apps-engine/definition/messages/IMessage';
import type { IRoom } from '@rocket.chat/apps-engine/definition/rooms/IRoom';
import type { IRoomBuilder } from '@rocket.chat/apps-engine/definition/accessors/IRoomBuilder';

import type { RocketChatAssociationModel as _RocketChatAssociationModel } from '@rocket.chat/apps-engine/definition/metadata/RocketChatAssociations.ts';
import type { RoomType as _RoomType } from '@rocket.chat/apps-engine/definition/rooms/RoomType.ts';
import type { RocketChatAssociationModel as _RocketChatAssociationModel } from '@rocket.chat/apps-engine/definition/metadata/RocketChatAssociations';
import type { RoomType as _RoomType } from '@rocket.chat/apps-engine/definition/rooms/RoomType';

import { RoomBuilder } from './RoomBuilder.ts';
import { require } from '../../../lib/require.ts';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type { RocketChatAssociationModel as _RocketChatAssociationModel } from '@rocket.chat/apps-engine/definition/metadata/RocketChatAssociations.ts';
import type { RoomType as _RoomType } from '@rocket.chat/apps-engine/definition/rooms/RoomType.ts';

import type { ILivechatMessageBuilder } from '@rocket.chat/apps-engine/definition/accessors/ILivechatMessageBuilder.ts';
import type { IMessage } from '@rocket.chat/apps-engine/definition/messages/IMessage.ts';
import type { IMessageAttachment } from '@rocket.chat/apps-engine/definition/messages/IMessageAttachment.ts';
import type { IRoom } from '@rocket.chat/apps-engine/definition/rooms/IRoom.ts';
import type { IUser } from '@rocket.chat/apps-engine/definition/users/IUser.ts';
import type { ILivechatMessage as EngineLivechatMessage } from '@rocket.chat/apps-engine/definition/livechat/ILivechatMessage.ts';
import type { IVisitor } from '@rocket.chat/apps-engine/definition/livechat/IVisitor.ts';
import type { IMessageBuilder } from '@rocket.chat/apps-engine/definition/accessors/IMessageBuilder.ts';
import type { RocketChatAssociationModel as _RocketChatAssociationModel } from '@rocket.chat/apps-engine/definition/metadata/RocketChatAssociations';
import type { RoomType as _RoomType } from '@rocket.chat/apps-engine/definition/rooms/RoomType';

import type { ILivechatMessageBuilder } from '@rocket.chat/apps-engine/definition/accessors/ILivechatMessageBuilder';
import type { IMessage } from '@rocket.chat/apps-engine/definition/messages/IMessage';
import type { IMessageAttachment } from '@rocket.chat/apps-engine/definition/messages/IMessageAttachment';
import type { IRoom } from '@rocket.chat/apps-engine/definition/rooms/IRoom';
import type { IUser } from '@rocket.chat/apps-engine/definition/users/IUser';
import type { ILivechatMessage as EngineLivechatMessage } from '@rocket.chat/apps-engine/definition/livechat/ILivechatMessage';
import type { IVisitor } from '@rocket.chat/apps-engine/definition/livechat/IVisitor';
import type { IMessageBuilder } from '@rocket.chat/apps-engine/definition/accessors/IMessageBuilder';

import { MessageBuilder } from './MessageBuilder.ts';
import { require } from '../../../lib/require.ts';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { LayoutBlock } from '@rocket.chat/ui-kit';

import type { IMessageBuilder } from '@rocket.chat/apps-engine/definition/accessors/IMessageBuilder.ts';
import type { RocketChatAssociationModel as _RocketChatAssociationModel } from '@rocket.chat/apps-engine/definition/metadata/RocketChatAssociations.ts';
import type { IMessage } from '@rocket.chat/apps-engine/definition/messages/IMessage.ts';
import type { IMessageAttachment } from '@rocket.chat/apps-engine/definition/messages/IMessageAttachment.ts';
import type { IUser } from '@rocket.chat/apps-engine/definition/users/IUser.ts';
import type { IRoom } from '@rocket.chat/apps-engine/definition/rooms/IRoom.ts';
import type { IBlock } from '@rocket.chat/apps-engine/definition/uikit/blocks/Blocks.ts';
import type { IMessageBuilder } from '@rocket.chat/apps-engine/definition/accessors/IMessageBuilder';
import type { RocketChatAssociationModel as _RocketChatAssociationModel } from '@rocket.chat/apps-engine/definition/metadata/RocketChatAssociations';
import type { IMessage } from '@rocket.chat/apps-engine/definition/messages/IMessage';
import type { IMessageAttachment } from '@rocket.chat/apps-engine/definition/messages/IMessageAttachment';
import type { IUser } from '@rocket.chat/apps-engine/definition/users/IUser';
import type { IRoom } from '@rocket.chat/apps-engine/definition/rooms/IRoom';
import type { IBlock } from '@rocket.chat/apps-engine/definition/uikit/blocks/Blocks';

import { BlockBuilder } from './BlockBuilder.ts';
import { require } from '../../../lib/require.ts';
Expand Down
Loading
Loading