snapshot of https://github.com/RocketChat/Rocket.Chat.git (develop, 2026-09-16; blobs > 131072B omitted)
Some checks failed
Create issues from TODOs / todos (push) Failing after 3s
Close inactive issues / close-issues (push) Has been cancelled
Deploy GitHub Pages / deploy-preview (push) Has been cancelled
CI / ⚙️ Variables Setup (push) Has been cancelled
CI / ⚙️ Test Guard (push) Has been cancelled
CI / 🚀 Notify external services - draft (push) Has been cancelled
CI / 📦 Build Packages (push) Has been cancelled
CI / 📦 Meteor Build (coverage) (push) Has been cancelled
CI / 📦 Meteor Build (production) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [account-service presence-service omnichannel-transcript-service], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [account-service presence-service omnichannel-transcript-service], fips) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [authorization-service queue-worker-service ddp-streamer-service], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [authorization-service queue-worker-service ddp-streamer-service], fips) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [rocketchat], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [rocketchat], coverage) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [rocketchat], fips) (push) Has been cancelled
CI / 🚢 Build Docker (arm64, [account-service presence-service omnichannel-transcript-service], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (arm64, [authorization-service queue-worker-service ddp-streamer-service], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (arm64, [rocketchat], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (arm64, [rocketchat], coverage) (push) Has been cancelled
CI / 🚢 Publish Docker Images (ghcr.io) (push) Has been cancelled
CI / 📦 Track Image Sizes (push) Has been cancelled
CI / 🔎 Code Check - Action Lint (push) Has been cancelled
CI / 🔎 Code Check (push) Has been cancelled
CI / 🔨 Test Storybook (push) Has been cancelled
CI / 🔨 Test Unit (push) Has been cancelled
CI / 🔨 Test API (CE) (push) Has been cancelled
CI / 🔨 Test API Livechat (CE) (push) Has been cancelled
CI / 🔨 Test UI (CE) (push) Has been cancelled
CI / 🔨 Test API (EE) (push) Has been cancelled
CI / 🔨 Test API Livechat (EE) (push) Has been cancelled
CI / 🔨 Test API Apps (deno-runtime - EE) (push) Has been cancelled
CI / 🔨 Test UI (EE) (push) Has been cancelled
CI / 🔨 Test API (FIPS) (push) Has been cancelled
CI / 🔨 Test API Livechat (FIPS) (push) Has been cancelled
CI / 🔨 Test UI (FIPS) (push) Has been cancelled
CI / 🔨 Test Federation Matrix (push) Has been cancelled
CI / 📊 Report Coverage (push) Has been cancelled
CI / ✅ Tests Done (push) Has been cancelled
CI / 🚀 Publish build assets (push) Has been cancelled
CI / 🚀 Publish Docker Images (DockerHub) (push) Has been cancelled
CI / 🚀 Notify external services (push) Has been cancelled
CI / Update Version Durability (push) Has been cancelled
Release / Release (push) Has been cancelled
Auto-close duplicate issues / auto-close-duplicates (push) Failing after 1s
Code scanning - action / CodeQL-Build (push) Failing after 1s

This commit is contained in:
upstream-mirror
2026-09-16 01:21:02 +05:00
commit 30810eecd7
10161 changed files with 987110 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
import { RocketChatError } from './RocketChatError';
export class InvalidCommandUsage extends RocketChatError<'invalid-command-usage'> {
constructor(message = 'Executing a command requires at least a message with a room id.', details?: string) {
super('invalid-command-usage', message, details);
}
}

View File

@@ -0,0 +1,7 @@
import { RocketChatError } from './RocketChatError';
export class InvalidPreview extends RocketChatError<'error-invalid-preview'> {
constructor(message = 'Preview Item must have an id, type, and value.', details?: string) {
super('error-invalid-preview', message, details);
}
}

View File

@@ -0,0 +1,7 @@
import { RocketChatError } from './RocketChatError';
export class InvalidUrlError extends RocketChatError<'invalid-url'> {
constructor(message = 'Invalid url', details?: string) {
super('invalid-url', message, details);
}
}

View File

@@ -0,0 +1,7 @@
import { RocketChatError } from './RocketChatError';
export class NotAuthorizedError extends RocketChatError<'not-authorized'> {
constructor(message = 'Not authorized', details?: unknown) {
super('not-authorized', message, details);
}
}

View File

@@ -0,0 +1,15 @@
import type { IRoom } from '@rocket.chat/core-typings';
import { RocketChatError } from './RocketChatError';
type NotSubscribedToRoomErrorDetails = { rid: IRoom['_id'] };
export class NotSubscribedToRoomError extends RocketChatError<'not-subscribed-room', NotSubscribedToRoomErrorDetails> {
declare public readonly reason: string;
declare public readonly details: NotSubscribedToRoomErrorDetails;
constructor(message = 'Not subscribed to this room', details: NotSubscribedToRoomErrorDetails) {
super('not-subscribed-room', message, details);
}
}

View File

@@ -0,0 +1,16 @@
import type { IRoom, RoomType } from '@rocket.chat/core-typings';
import { RocketChatError } from './RocketChatError';
type OldUrlRoomErrorDetails =
| { rid: IRoom['_id'] }
| {
type: RoomType;
reference: string;
};
export class OldUrlRoomError extends RocketChatError<'old-url-format', OldUrlRoomErrorDetails> {
constructor(message = 'Old Url Format', details: OldUrlRoomErrorDetails) {
super('old-url-format', message, details);
}
}

View File

@@ -0,0 +1,7 @@
import { RocketChatError } from './RocketChatError';
export class PinMessagesNotAllowed extends RocketChatError<'error-pinning-message'> {
constructor(message = 'Pinning messages is not allowed', details?: unknown) {
super('error-pinning-message', message, details);
}
}

View File

@@ -0,0 +1,14 @@
export abstract class RocketChatError<TErrorId extends string, TDetails = unknown> extends Error {
public readonly error: TErrorId;
public readonly reason?: string;
public readonly details?: TDetails;
constructor(error: TErrorId, reason?: string, details?: TDetails) {
super(reason ? `${reason} [${error}]` : `[${error}]`);
this.error = error;
this.reason = reason;
this.details = details;
}
}

View File

@@ -0,0 +1,16 @@
import type { IRoom, RoomType } from '@rocket.chat/core-typings';
import { RocketChatError } from './RocketChatError';
type RoomNotFoundErrorDetails =
| { rid: IRoom['_id'] }
| {
type: RoomType;
reference: string;
};
export class RoomNotFoundError extends RocketChatError<'room-not-found', RoomNotFoundErrorDetails> {
constructor(message = 'Room not found', details: RoomNotFoundErrorDetails) {
super('room-not-found', message, details);
}
}

View File

@@ -0,0 +1,7 @@
import { RocketChatError } from './RocketChatError';
export class UiKitTriggerTimeoutError extends RocketChatError<'trigger-timeout'> {
constructor(message = 'Timeout', details: { triggerId: string; appId: string }) {
super('trigger-timeout', message, details);
}
}

View File

@@ -0,0 +1,2 @@
export * from './InvalidCommandUsage';
export * from './InvalidPreview';