Enforce node: schema for builtins, import extensions

This commit is contained in:
Fedor Indutny 2025-09-16 17:39:03 -07:00 committed by GitHub
commit c02565eaa8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2096 changed files with 14955 additions and 14023 deletions

View file

@ -5,13 +5,13 @@ import Long from 'long';
import { ReceiptCredentialPresentation } from '@signalapp/libsignal-client/zkgroup';
import { isNumber } from 'lodash';
import { assertDev, strictAssert } from '../util/assert';
import { dropNull, shallowDropNull } from '../util/dropNull';
import { fromAciUuidBytesOrString } from '../util/ServiceId';
import { getTimestampFromLong } from '../util/timestampLongUtils';
import { SignalService as Proto } from '../protobuf';
import { deriveGroupFields } from '../groups';
import * as Bytes from '../Bytes';
import { assertDev, strictAssert } from '../util/assert.js';
import { dropNull, shallowDropNull } from '../util/dropNull.js';
import { fromAciUuidBytesOrString } from '../util/ServiceId.js';
import { getTimestampFromLong } from '../util/timestampLongUtils.js';
import { SignalService as Proto } from '../protobuf/index.js';
import { deriveGroupFields } from '../groups.js';
import * as Bytes from '../Bytes.js';
import type {
ProcessedAttachment,
@ -25,17 +25,17 @@ import type {
ProcessedDelete,
ProcessedGiftBadge,
ProcessedStoryContext,
} from './Types.d';
import { GiftBadgeStates } from '../components/conversation/Message';
import { APPLICATION_OCTET_STREAM, stringToMIMEType } from '../types/MIME';
import { SECOND, DurationInSeconds } from '../util/durations';
import type { AnyPaymentEvent } from '../types/Payment';
import { PaymentEventKind } from '../types/Payment';
import { filterAndClean } from '../types/BodyRange';
import { bytesToUuid } from '../util/uuidToBytes';
import { createName } from '../util/attachmentPath';
import { partitionBodyAndNormalAttachments } from '../types/Attachment';
import { isNotNil } from '../util/isNotNil';
} from './Types.d.ts';
import { GiftBadgeStates } from '../components/conversation/Message.js';
import { APPLICATION_OCTET_STREAM, stringToMIMEType } from '../types/MIME.js';
import { SECOND, DurationInSeconds } from '../util/durations/index.js';
import type { AnyPaymentEvent } from '../types/Payment.js';
import { PaymentEventKind } from '../types/Payment.js';
import { filterAndClean } from '../types/BodyRange.js';
import { bytesToUuid } from '../util/uuidToBytes.js';
import { createName } from '../util/attachmentPath.js';
import { partitionBodyAndNormalAttachments } from '../types/Attachment.js';
import { isNotNil } from '../util/isNotNil.js';
const FLAGS = Proto.DataMessage.Flags;
export const ATTACHMENT_MAX = 32;