Prepare for adding file suffixes

This commit is contained in:
Fedor Indutny
2025-10-16 11:29:11 -07:00
parent 3330dd72ce
commit 3387cf6a77
2095 changed files with 15148 additions and 14629 deletions

View File

@@ -2,34 +2,34 @@
// SPDX-License-Identifier: AGPL-3.0-only
import { CallLinkRootKey } from '@signalapp/ringrtc';
import * as Bytes from '../../Bytes.js';
import * as Bytes from '../../Bytes.std.js';
import type {
CallLinkRecord,
CallLinkStateType,
CallLinkType,
DefunctCallLinkType,
} from '../../types/CallLink.js';
} from '../../types/CallLink.std.js';
import {
callLinkRestrictionsSchema,
callLinkRecordSchema,
defunctCallLinkRecordSchema,
} from '../../types/CallLink.js';
import { toAdminKeyBytes } from '../../util/callLinks.js';
} from '../../types/CallLink.std.js';
import { toAdminKeyBytes } from '../../util/callLinks.std.js';
import {
callLinkToRecord,
callLinkFromRecord,
defunctCallLinkToRecord,
defunctCallLinkFromRecord,
toEpochBytes,
} from '../../util/callLinksRingrtc.js';
import type { ReadableDB, WritableDB } from '../Interface.js';
import { sql } from '../util.js';
import { strictAssert } from '../../util/assert.js';
} from '../../util/callLinksRingrtc.node.js';
import type { ReadableDB, WritableDB } from '../Interface.std.js';
import { sql } from '../util.std.js';
import { strictAssert } from '../../util/assert.std.js';
import {
CallStatusValue,
DirectCallStatus,
} from '../../types/CallDisposition.js';
import { parseStrict, parseUnknown } from '../../util/schemas.js';
} from '../../types/CallDisposition.std.js';
import { parseStrict, parseUnknown } from '../../util/schemas.std.js';
export function callLinkExists(db: ReadableDB, roomId: string): boolean {
const [query, params] = sql`

View File

@@ -7,12 +7,12 @@ import {
CHAT_FOLDER_DELETED_POSITION,
CHAT_FOLDER_DEFAULTS,
ChatFolderType,
} from '../../types/ChatFolder.js';
import type { ReadableDB, WritableDB } from '../Interface.js';
import { sql } from '../util.js';
import { strictAssert } from '../../util/assert.js';
import type { CurrentChatFolder } from '../../types/CurrentChatFolders.js';
import { isCurrentChatFolder } from '../../types/CurrentChatFolders.js';
} from '../../types/ChatFolder.std.js';
import type { ReadableDB, WritableDB } from '../Interface.std.js';
import { sql } from '../util.std.js';
import { strictAssert } from '../../util/assert.std.js';
import type { CurrentChatFolder } from '../../types/CurrentChatFolders.std.js';
import { isCurrentChatFolder } from '../../types/CurrentChatFolders.std.js';
export type ChatFolderRow = Readonly<
Omit<

View File

@@ -1,10 +1,10 @@
// Copyright 2025 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { sql } from '../util.js';
import { sql } from '../util.std.js';
import type { DonationReceipt } from '../../types/Donations.js';
import type { ReadableDB, WritableDB } from '../Interface.js';
import type { DonationReceipt } from '../../types/Donations.std.js';
import type { ReadableDB, WritableDB } from '../Interface.std.js';
export function getAllDonationReceipts(db: ReadableDB): Array<DonationReceipt> {
const donationReceipts = db

View File

@@ -5,17 +5,17 @@ import type {
GroupSendCombinedEndorsementRecord,
GroupSendEndorsementsData,
GroupSendMemberEndorsementRecord,
} from '../../types/GroupSendEndorsements.js';
} from '../../types/GroupSendEndorsements.std.js';
import {
groupSendEndorsementExpirationSchema,
groupSendMemberEndorsementSchema,
groupSendEndorsementsDataSchema,
} from '../../types/GroupSendEndorsements.js';
import type { ReadableDB, WritableDB } from '../Interface.js';
import { sql } from '../util.js';
import type { AciString } from '../../types/ServiceId.js';
import { strictAssert } from '../../util/assert.js';
import { parseLoose, parseUnknown } from '../../util/schemas.js';
} from '../../types/GroupSendEndorsements.std.js';
import type { ReadableDB, WritableDB } from '../Interface.std.js';
import { sql } from '../util.std.js';
import type { AciString } from '../../types/ServiceId.std.js';
import { strictAssert } from '../../util/assert.std.js';
import { parseLoose, parseUnknown } from '../../util/schemas.std.js';
/**
* We don't need to store more than one endorsement per group or per member.

View File

@@ -2,10 +2,10 @@
// SPDX-License-Identifier: AGPL-3.0-only
import { z } from 'zod';
import { convertUndefinedToNull } from '../../util/dropNull.js';
import { messageAttachmentTypeSchema } from '../../types/AttachmentDownload.js';
import { APPLICATION_OCTET_STREAM } from '../../types/MIME.js';
import type { MessageAttachmentDBType } from '../Interface.js';
import { convertUndefinedToNull } from '../../util/dropNull.std.js';
import { messageAttachmentTypeSchema } from '../../types/AttachmentDownload.std.js';
import { APPLICATION_OCTET_STREAM } from '../../types/MIME.std.js';
import type { MessageAttachmentDBType } from '../Interface.std.js';
const permissiveStringOrNull = z
.string()