Skip to content

The open alternative to Salesforce, designed for AI.

[1/4] Register agentChatThreadTarget as a standard workspace object (#26328)

Félix Malfait78e0342003f9
diff --git a/packages/twenty-server/src/database/commands/agent-history/utils/__tests__/get-agent-history-schema-additions.util.spec.ts b/packages/twenty-server/src/database/commands/agent-history/utils/__tests__/get-agent-history-schema-additions.util.spec.ts
index 2d716dbd24b..3acb43a8963 100644
--- a/packages/twenty-server/src/database/commands/agent-history/utils/__tests__/get-agent-history-schema-additions.util.spec.ts
+++ b/packages/twenty-server/src/database/commands/agent-history/utils/__tests__/get-agent-history-schema-additions.util.spec.ts
@@ -138,6 +138,40 @@ describe('getAgentHistorySchemaAdditions', () => {
);
});
+ it('leaves agentChatThreadTarget and both legs of its thread relation out', () => {
+ const additions = getAgentHistorySchemaAdditions({
+ existing: {
+ flatObjectMetadataMaps: createEmptyFlatEntityMaps(),
+ flatFieldMetadataMaps: createEmptyFlatEntityMaps(),
+ flatIndexMaps: createEmptyFlatEntityMaps(),
+ },
+ standard: createStandardMetadata(),
+ });
+ const targetIdentifier =
+ STANDARD_OBJECTS.agentChatThreadTarget.universalIdentifier;
+
+ // The target is provisioned by its own command, later in the upgrade, so
+ // anything emitted here would land on an object that does not exist yet.
+ expect(
+ additions.fields
+ .filter(
+ (field) =>
+ field.objectMetadataUniversalIdentifier === targetIdentifier ||
+ field.relationTargetObjectMetadataUniversalIdentifier ===
+ targetIdentifier,
+ )
+ .map((field) => field.universalIdentifier),
+ ).toEqual([]);
+ expect(
+ additions.indexes
+ .filter(
+ (index) =>
+ index.objectMetadataUniversalIdentifier === targetIdentifier,
+ )
+ .map((index) => index.universalIdentifier),
+ ).toEqual([]);
+ });
+
it('adds nothing when all history metadata already exists', () => {
const standard = createStandardMetadata();
expect(
diff --git a/packages/twenty-server/src/database/commands/agent-history/utils/get-agent-history-schema-additions.util.ts b/packages/twenty-server/src/database/commands/agent-history/utils/get-agent-history-schema-additions.util.ts
index 9b0475295ff..471701592e3 100644
--- a/packages/twenty-server/src/database/commands/agent-history/utils/get-agent-history-schema-additions.util.ts
+++ b/packages/twenty-server/src/database/commands/agent-history/utils/get-agent-history-schema-additions.util.ts
@@ -1,4 +1,7 @@
-import { STANDARD_OBJECTS } from 'twenty-shared/metadata';
+import {
+ STANDARD_OBJECT_FIELDS,
+ STANDARD_OBJECTS,
+} from 'twenty-shared/metadata';
import { MetadataReadability, MetadataWritability } from 'twenty-shared/types';
import { isDefined, isNonEmptyArray } from 'twenty-shared/utils';
@@ -10,6 +13,15 @@ type AgentHistorySchemaMaps = Pick<
'flatObjectMetadataMaps' | 'flatFieldMetadataMaps' | 'flatIndexMaps'
>;
+// agentChatThreadTarget is provisioned by its own command, which owns both legs
+// of its relation to agentChatThread: `thread` on the target and
+// `recordTargets` on the thread. This migration does not create that object, so
+// emitting either leg here would fail validation.
+const FIELD_UNIVERSAL_IDENTIFIERS_PROVISIONED_ELSEWHERE = new Set([
+ STANDARD_OBJECT_FIELDS.agentChatThread.recordTargets.universalIdentifier,
+ STANDARD_OBJECT_FIELDS.agentChatThreadTarget.thread.universalIdentifier,
+]);
+
export const getAgentHistorySchemaAdditions = ({
existing,
standard,
@@ -75,11 +87,14 @@ export const getAgentHistorySchemaAdditions = ({
.filter(isDefined)
.filter(
(field) =>
- objectIdentifiers.has(field.objectMetadataUniversalIdentifier) ||
- (isDefined(field.relationTargetObjectMetadataUniversalIdentifier) &&
- objectIdentifiers.has(
- field.relationTargetObjectMetadataUniversalIdentifier,
- )),
+ (objectIdentifiers.has(field.objectMetadataUniversalIdentifier) ||
+ (isDefined(field.relationTargetObjectMetadataUniversalIdentifier) &&
+ objectIdentifiers.has(
+ field.relationTargetObjectMetadataUniversalIdentifier,
+ ))) &&
+ !FIELD_UNIVERSAL_IDENTIFIERS_PROVISIONED_ELSEWHERE.has(
+ field.universalIdentifier,
+ ),
);
const fields = historyFields.filter(
(field) =>
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/standard-objects/agent-chat-thread-target.workspace-entity.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/standard-objects/agent-chat-thread-target.workspace-entity.ts
new file mode 100644
index 00000000000..9e27b317a40
--- /dev/null
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/standard-objects/agent-chat-thread-target.workspace-entity.ts
@@ -0,0 +1,20 @@
+import { type EntityRelation } from 'src/engine/workspace-manager/workspace-migration/types/entity-relation.interface';
+import { type AgentChatThreadWorkspaceEntity } from 'src/engine/metadata-modules/ai/ai-history/standard-objects/agent-chat-thread.workspace-entity';
+import { BaseWorkspaceEntity } from 'src/engine/twenty-orm/base.workspace-entity';
+import { type CompanyWorkspaceEntity } from 'src/modules/company/standard-objects/company.workspace-entity';
+import { type OpportunityWorkspaceEntity } from 'src/modules/opportunity/standard-objects/opportunity.workspace-entity';
+import { type PersonWorkspaceEntity } from 'src/modules/person/standard-objects/person.workspace-entity';
+import { type CustomWorkspaceEntity } from 'src/engine/twenty-orm/custom.workspace-entity';
+
+export class AgentChatThreadTargetWorkspaceEntity extends BaseWorkspaceEntity {
+ thread: EntityRelation<AgentChatThreadWorkspaceEntity>;
+ threadId: string;
+
+ targetPerson: EntityRelation<PersonWorkspaceEntity> | null;
+ targetPersonId: string | null;
+ targetCompany: EntityRelation<CompanyWorkspaceEntity> | null;
+ targetCompanyId: string | null;
+ targetOpportunity: EntityRelation<OpportunityWorkspaceEntity> | null;
+ targetOpportunityId: string | null;
+ custom: EntityRelation<CustomWorkspaceEntity>;
+}
diff --git a/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/standard-objects/agent-chat-thread.workspace-entity.ts b/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/standard-objects/agent-chat-thread.workspace-entity.ts
index 924826aa488..c78050e5a49 100644
--- a/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/standard-objects/agent-chat-thread.workspace-entity.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/ai/ai-history/standard-objects/agent-chat-thread.workspace-entity.ts
@@ -2,6 +2,7 @@ import { type AttachmentWorkspaceEntity } from 'src/modules/attachment/standard-
import { type EntityRelation } from 'src/engine/workspace-manager/workspace-migration/types/entity-relation.interface';
import { type AgentMessageWorkspaceEntity } from 'src/engine/metadata-modules/ai/ai-history/standard-objects/agent-message.workspace-entity';
import { type AgentTurnWorkspaceEntity } from 'src/engine/metadata-modules/ai/ai-history/standard-objects/agent-turn.workspace-entity';
+import { type AgentChatThreadTargetWorkspaceEntity } from 'src/engine/metadata-modules/ai/ai-history/standard-objects/agent-chat-thread-target.workspace-entity';
import { BaseWorkspaceEntity } from 'src/engine/twenty-orm/base.workspace-entity';
import { type AgentChatThreadLastStreamError } from 'src/engine/metadata-modules/ai/ai-chat/types/agent-chat-thread-last-stream-error.type';
@@ -9,6 +10,7 @@ export class AgentChatThreadWorkspaceEntity extends BaseWorkspaceEntity {
messages: EntityRelation<AgentMessageWorkspaceEntity[]>;
turns: EntityRelation<AgentTurnWorkspaceEntity[]>;
attachments: EntityRelation<AttachmentWorkspaceEntity[]>;
+ recordTargets: EntityRelation<AgentChatThreadTargetWorkspaceEntity[]>;
archivedAt: string | null;
userWorkspaceId: string;
diff --git a/packages/twenty-server/src/engine/metadata-modules/metadata-side-effect/handlers/object-metadata/services/object-system-relations-on-create-side-effect-handler.service.ts b/packages/twenty-server/src/engine/metadata-modules/metadata-side-effect/handlers/object-metadata/services/object-system-relations-on-create-side-effect-handler.service.ts
index 1950e22d4c1..27e4324e2a9 100644
--- a/packages/twenty-server/src/engine/metadata-modules/metadata-side-effect/handlers/object-metadata/services/object-system-relations-on-create-side-effect-handler.service.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/metadata-side-effect/handlers/object-metadata/services/object-system-relations-on-create-side-effect-handler.service.ts
@@ -2,11 +2,7 @@ import { msg, t } from '@lingui/core/macro';
import { Injectable } from '@nestjs/common';
import { isNonEmptyArray } from '@sniptt/guards';
-import {
- DEFAULT_RELATIONS_OBJECTS_STANDARD_IDS,
- STANDARD_OBJECTS,
-} from 'twenty-shared/metadata';
-import { fromArrayToUniqueKeyRecord, isDefined } from 'twenty-shared/utils';
+import { fromArrayToUniqueKeyRecord } from 'twenty-shared/utils';
import { type MetadataFlatEntity } from 'src/engine/metadata-modules/flat-entity/types/metadata-flat-entity.type';
import { MetadataSideEffectExceptionCode } from 'src/engine/metadata-modules/metadata-side-effect/exceptions/metadata-side-effect-exception-code';
@@ -19,10 +15,7 @@ import {
type MetadataSideEffectResult,
} from 'src/engine/metadata-modules/metadata-side-effect/types/metadata-side-effect-result.type';
import { buildSystemRelationFlatFieldMetadatasForObject } from 'src/engine/metadata-modules/object-metadata/utils/build-system-relation-flat-field-metadatas-for-object.util';
-import { type UniversalFlatObjectMetadata } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/universal-flat-object-metadata.type';
-
-type DefaultRelationStandardObjectNameSingular =
- (typeof DEFAULT_RELATIONS_OBJECTS_STANDARD_IDS)[number];
+import { resolveSystemRelationTargetFlatObjectMetadatas } from 'src/engine/metadata-modules/object-metadata/utils/resolve-system-relation-target-flat-object-metadatas.util';
@Injectable()
export class ObjectSystemRelationsOnCreateSideEffectHandlerService extends MetadataSideEffectHandler(
@@ -31,39 +24,28 @@ export class ObjectSystemRelationsOnCreateSideEffectHandlerService extends Metad
metadataName: 'objectMetadata',
name: 'objectSystemRelationsOnCreate',
description:
- 'When an object is created, provision its default relations to the four standard relation objects (timelineActivity, attachment, noteTarget, taskTarget): the forward RELATION field on the new object, the reverse MORPH_RELATION field on the standard object (name-free deterministic identifier so an object rename is a lossless update), and the reverse join-column index. All emitted entities are isSystemSideEffect, so the engine owns their lifecycle. twenty-standard authors these fields itself and never reaches this handler (it syncs via the FromTo path). The handler always emits its bundles: a caller-provided field colliding on universal identifier hard-fails at merge time (RESERVED_SYSTEM_UNIVERSAL_IDENTIFIER), and a caller field colliding on name hard-fails in the field validator (NOT_AVAILABLE).',
+ 'When an object is created, provision its default relations to the four standard relation objects (timelineActivity, attachment, noteTarget, taskTarget), plus agentChatThreadTarget when the workspace has it: the forward RELATION field on the new object, the reverse MORPH_RELATION field on the standard object (name-free deterministic identifier so an object rename is a lossless update), and the reverse join-column index. All emitted entities are isSystemSideEffect, so the engine owns their lifecycle. twenty-standard authors these fields itself and never reaches this handler (it syncs via the FromTo path). The handler always emits its bundles: a caller-provided field colliding on universal identifier hard-fails at merge time (RESERVED_SYSTEM_UNIVERSAL_IDENTIFIER), and a caller field colliding on name hard-fails in the field validator (NOT_AVAILABLE).',
},
) {
buildSideEffects({
flatEntity: sourceFlatObjectMetadata,
relatedFlatEntityMaps,
}: BuildSideEffectsArgs<'objectMetadata'>): MetadataSideEffectResult {
- const standardTargetFlatObjectMetadataByNameSingular = {} as Record<
- DefaultRelationStandardObjectNameSingular,
- UniversalFlatObjectMetadata
- >;
-
- const missingStandardObjectErrors: MetadataSideEffectFailure['errors'] = [];
+ const {
+ standardTargetFlatObjectMetadataByNameSingular,
+ missingDefaultRelationObjectNameSingulars,
+ } = resolveSystemRelationTargetFlatObjectMetadatas({
+ flatObjectMetadataMaps: relatedFlatEntityMaps.flatObjectMetadataMaps,
+ });
- for (const standardObjectNameSingular of DEFAULT_RELATIONS_OBJECTS_STANDARD_IDS) {
- const standardTargetFlatObjectMetadata =
- relatedFlatEntityMaps.flatObjectMetadataMaps.byUniversalIdentifier[
- STANDARD_OBJECTS[standardObjectNameSingular].universalIdentifier
- ];
-
- if (!isDefined(standardTargetFlatObjectMetadata)) {
- missingStandardObjectErrors.push({
+ const missingStandardObjectErrors: MetadataSideEffectFailure['errors'] =
+ missingDefaultRelationObjectNameSingulars.map(
+ (standardObjectNameSingular) => ({
code: MetadataSideEffectExceptionCode.SIDE_EFFECT_PARENT_METADATA_NOT_FOUND,
message: t`Could not resolve standard relation object "${standardObjectNameSingular}" to provision default relations`,
userFriendlyMessage: msg`A standard object required to provision default relations could not be found`,
- });
- continue;
- }
-
- standardTargetFlatObjectMetadataByNameSingular[
- standardObjectNameSingular
- ] = standardTargetFlatObjectMetadata;
- }
+ }),
+ );
if (isNonEmptyArray(missingStandardObjectErrors)) {
return {
diff --git a/packages/twenty-server/src/engine/metadata-modules/metadata-side-effect/handlers/object-metadata/services/object-system-relations-on-update-side-effect-handler.service.ts b/packages/twenty-server/src/engine/metadata-modules/metadata-side-effect/handlers/object-metadata/services/object-system-relations-on-update-side-effect-handler.service.ts
index df9a26d7210..bb379b67092 100644
--- a/packages/twenty-server/src/engine/metadata-modules/metadata-side-effect/handlers/object-metadata/services/object-system-relations-on-update-side-effect-handler.service.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/metadata-side-effect/handlers/object-metadata/services/object-system-relations-on-update-side-effect-handler.service.ts
@@ -19,7 +19,7 @@ export class ObjectSystemRelationsOnUpdateSideEffectHandlerService extends Metad
metadataName: 'objectMetadata',
name: 'objectSystemRelationsOnUpdate',
description:
- 'When an object is renamed, rename the reverse MORPH_RELATION fields of its default relations to the standard objects (timelineActivity, attachment, noteTarget, taskTarget) and recompute their join-column index names. These reverse fields are isSystemSideEffect, so the engine is their sole authority on rename across both the API and manifest-sync paths (the API transpiler renames only user-authored morph relations). The reverse field universal identifier is name-free, so a rename stays a lossless update. The computed updates are emitted unconditionally; any universal identifier collision with a caller-provided operation is arbitrated by the engine merge.',
+ 'When an object is renamed, rename the reverse MORPH_RELATION fields of its default relations to the standard objects (timelineActivity, attachment, noteTarget, taskTarget, and agentChatThreadTarget when provisioned) and recompute their join-column index names. These reverse fields are isSystemSideEffect, so the engine is their sole authority on rename across both the API and manifest-sync paths (the API transpiler renames only user-authored morph relations). The reverse field universal identifier is name-free, so a rename stays a lossless update. The computed updates are emitted unconditionally; any universal identifier collision with a caller-provided operation is arbitrated by the engine merge.',
},
) {
buildSideEffects({
diff --git a/packages/twenty-server/src/engine/metadata-modules/object-metadata/constants/optional-default-relations-object-standard-ids.constant.ts b/packages/twenty-server/src/engine/metadata-modules/object-metadata/constants/optional-default-relations-object-standard-ids.constant.ts
new file mode 100644
index 00000000000..1786fe5cfbe
--- /dev/null
+++ b/packages/twenty-server/src/engine/metadata-modules/object-metadata/constants/optional-default-relations-object-standard-ids.constant.ts
@@ -0,0 +1,10 @@
+import { type STANDARD_OBJECTS } from 'twenty-shared/metadata';
+
+// Historical upgrade commands read DEFAULT_RELATIONS_OBJECTS_STANDARD_IDS and
+// skip any workspace missing one of those objects, so a relation object added
+// after them cannot join that list. Its own upgrade command provisions it, so a
+// workspace can lack it until that runs: object creation mints the pair only
+// when the object exists, and the command backfills objects created before.
+export const OPTIONAL_DEFAULT_RELATIONS_OBJECTS_STANDARD_IDS = [
+ 'agentChatThreadTarget',
+] as const satisfies (keyof typeof STANDARD_OBJECTS)[];
diff --git a/packages/twenty-server/src/engine/metadata-modules/object-metadata/constants/standard-relation-field-properties.constant.ts b/packages/twenty-server/src/engine/metadata-modules/object-metadata/constants/standard-relation-field-properties.constant.ts
index fc41991d163..95117adf93c 100644
--- a/packages/twenty-server/src/engine/metadata-modules/object-metadata/constants/standard-relation-field-properties.constant.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/object-metadata/constants/standard-relation-field-properties.constant.ts
@@ -3,6 +3,8 @@ import { msg } from '@lingui/core/macro';
import { DEFAULT_RELATIONS_OBJECTS_STANDARD_IDS } from 'twenty-shared/metadata';
+import { type OPTIONAL_DEFAULT_RELATIONS_OBJECTS_STANDARD_IDS } from 'src/engine/metadata-modules/object-metadata/constants/optional-default-relations-object-standard-ids.constant';
+
export const STANDARD_RELATION_FIELD_PROPERTIES_BY_RELATION_OBJECT = {
noteTarget: {
label: msg({ message: `Notes`, context: 'fieldMetadata.label' }),
@@ -23,7 +25,12 @@ export const STANDARD_RELATION_FIELD_PROPERTIES_BY_RELATION_OBJECT = {
}),
icon: 'IconTimelineEvent',
},
+ agentChatThreadTarget: {
+ label: msg({ message: `Chats`, context: 'fieldMetadata.label' }),
+ icon: 'IconMessage',
+ },
} satisfies Record<
- (typeof DEFAULT_RELATIONS_OBJECTS_STANDARD_IDS)[number],
+ | (typeof DEFAULT_RELATIONS_OBJECTS_STANDARD_IDS)[number]
+ | (typeof OPTIONAL_DEFAULT_RELATIONS_OBJECTS_STANDARD_IDS)[number],
{ label: MessageDescriptor; icon: string }
>;
diff --git a/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/__tests__/build-system-relation-flat-field-metadatas-for-object.util.spec.ts b/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/__tests__/build-system-relation-flat-field-metadatas-for-object.util.spec.ts
new file mode 100644
index 00000000000..9b09dfca478
--- /dev/null
+++ b/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/__tests__/build-system-relation-flat-field-metadatas-for-object.util.spec.ts
@@ -0,0 +1,134 @@
+import { STANDARD_OBJECTS } from 'twenty-shared/metadata';
+import { FieldMetadataType, RelationType } from 'twenty-shared/types';
+
+import { buildSystemRelationFlatFieldMetadatasForObject } from 'src/engine/metadata-modules/object-metadata/utils/build-system-relation-flat-field-metadatas-for-object.util';
+import { computeTwentyStandardApplicationAllFlatEntityMaps } from 'src/engine/workspace-manager/twenty-standard-application/utils/twenty-standard-application-all-flat-entity-maps.constant';
+
+const CUSTOM_APPLICATION_UNIVERSAL_IDENTIFIER =
+ 'a1a2a3a4-a5a6-4000-8000-000000000001';
+
+const { allFlatEntityMaps } = computeTwentyStandardApplicationAllFlatEntityMaps(
+ {
+ now: '2026-09-24T00:00:00.000Z',
+ workspaceId: '20202020-1111-4111-8111-111111111111',
+ twentyStandardApplicationId: '20202020-2222-4222-8222-222222222222',
+ },
+);
+
+const findStandardObject = (nameSingular: keyof typeof STANDARD_OBJECTS) => {
+ const flatObjectMetadata =
+ allFlatEntityMaps.flatObjectMetadataMaps.byUniversalIdentifier[
+ STANDARD_OBJECTS[nameSingular].universalIdentifier
+ ];
+
+ if (flatObjectMetadata === undefined) {
+ throw new Error(`Missing standard object ${nameSingular}`);
+ }
+
+ return flatObjectMetadata;
+};
+
+const petFlatObjectMetadata = {
+ ...findStandardObject('company'),
+ universalIdentifier: 'b1b2b3b4-b5b6-4000-8000-000000000001',
+ applicationUniversalIdentifier: CUSTOM_APPLICATION_UNIVERSAL_IDENTIFIER,
+ nameSingular: 'pet',
+ namePlural: 'pets',
+};
+
+const DEFAULT_TARGETS = {
+ timelineActivity: findStandardObject('timelineActivity'),
+ attachment: findStandardObject('attachment'),
+ noteTarget: findStandardObject('noteTarget'),
+ taskTarget: findStandardObject('taskTarget'),
+};
+
+describe('buildSystemRelationFlatFieldMetadatasForObject', () => {
+ // The 2-38 backfill calls this with the four default targets only, so their
+ // output must not change because a later target exists.
+ it('mints exactly the default pairs when the chat target is not passed', () => {
+ const bundles = buildSystemRelationFlatFieldMetadatasForObject({
+ sourceFlatObjectMetadata: petFlatObjectMetadata,
+ standardTargetFlatObjectMetadataByNameSingular: DEFAULT_TARGETS,
+ applicationUniversalIdentifier: CUSTOM_APPLICATION_UNIVERSAL_IDENTIFIER,
+ });
+
+ expect(
+ bundles.map(
+ ({ reverseFlatFieldMetadata }) =>
+ reverseFlatFieldMetadata.objectMetadataUniversalIdentifier,
+ ),
+ ).toEqual([
+ STANDARD_OBJECTS.timelineActivity.universalIdentifier,
+ STANDARD_OBJECTS.attachment.universalIdentifier,
+ STANDARD_OBJECTS.noteTarget.universalIdentifier,
+ STANDARD_OBJECTS.taskTarget.universalIdentifier,
+ ]);
+ });
+
+ it('adds the chat pair when the chat target is passed', () => {
+ const bundles = buildSystemRelationFlatFieldMetadatasForObject({
+ sourceFlatObjectMetadata: petFlatObjectMetadata,
+ standardTargetFlatObjectMetadataByNameSingular: {
+ ...DEFAULT_TARGETS,
+ agentChatThreadTarget: findStandardObject('agentChatThreadTarget'),
+ },
+ applicationUniversalIdentifier: CUSTOM_APPLICATION_UNIVERSAL_IDENTIFIER,
+ });
+
+ expect(
+ bundles.map(
+ ({ reverseFlatFieldMetadata }) =>
+ reverseFlatFieldMetadata.objectMetadataUniversalIdentifier,
+ ),
+ ).toEqual([
+ STANDARD_OBJECTS.timelineActivity.universalIdentifier,
+ STANDARD_OBJECTS.attachment.universalIdentifier,
+ STANDARD_OBJECTS.noteTarget.universalIdentifier,
+ STANDARD_OBJECTS.taskTarget.universalIdentifier,
+ STANDARD_OBJECTS.agentChatThreadTarget.universalIdentifier,
+ ]);
+ });
+
+ // The 2-43 backfill passes the chat target alone to mint only its pair.
+ it('mints the chat pair on the same morph as the standard legs', () => {
+ const bundles = buildSystemRelationFlatFieldMetadatasForObject({
+ sourceFlatObjectMetadata: petFlatObjectMetadata,
+ standardTargetFlatObjectMetadataByNameSingular: {
+ agentChatThreadTarget: findStandardObject('agentChatThreadTarget'),
+ },
+ applicationUniversalIdentifier: CUSTOM_APPLICATION_UNIVERSAL_IDENTIFIER,
+ });
+
+ expect(bundles).toHaveLength(1);
+
+ const [chatBundle] = bundles;
+
+ expect(chatBundle.forwardFlatFieldMetadata).toMatchObject({
+ name: 'agentChatThreadTargets',
+ type: FieldMetadataType.RELATION,
+ icon: 'IconMessage',
+ objectMetadataUniversalIdentifier:
+ petFlatObjectMetadata.universalIdentifier,
+ universalSettings: { relationType: RelationType.ONE_TO_MANY },
+ });
+ expect(chatBundle.reverseFlatFieldMetadata).toMatchObject({
+ name: 'targetPet',
+ type: FieldMetadataType.MORPH_RELATION,
+ icon: 'IconMessage',
+ morphId:
+ STANDARD_OBJECTS.agentChatThreadTarget.morphIds.targetMorphId.morphId,
+ objectMetadataUniversalIdentifier:
+ STANDARD_OBJECTS.agentChatThreadTarget.universalIdentifier,
+ relationTargetObjectMetadataUniversalIdentifier:
+ petFlatObjectMetadata.universalIdentifier,
+ universalSettings: {
+ relationType: RelationType.MANY_TO_ONE,
+ joinColumnName: 'targetPetId',
+ },
+ });
+ expect(chatBundle.flatIndexMetadata.objectMetadataUniversalIdentifier).toBe(
+ STANDARD_OBJECTS.agentChatThreadTarget.universalIdentifier,
+ );
+ });
+});
diff --git a/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/__tests__/resolve-system-relation-target-flat-object-metadatas.util.spec.ts b/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/__tests__/resolve-system-relation-target-flat-object-metadatas.util.spec.ts
new file mode 100644
index 00000000000..f96eb218b24
--- /dev/null
+++ b/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/__tests__/resolve-system-relation-target-flat-object-metadatas.util.spec.ts
@@ -0,0 +1,75 @@
+import { STANDARD_OBJECTS } from 'twenty-shared/metadata';
+
+import { resolveSystemRelationTargetFlatObjectMetadatas } from 'src/engine/metadata-modules/object-metadata/utils/resolve-system-relation-target-flat-object-metadatas.util';
+import { computeTwentyStandardApplicationAllFlatEntityMaps } from 'src/engine/workspace-manager/twenty-standard-application/utils/twenty-standard-application-all-flat-entity-maps.constant';
+
+const {
+ allFlatEntityMaps: { flatObjectMetadataMaps },
+} = computeTwentyStandardApplicationAllFlatEntityMaps({
+ now: '2026-09-24T00:00:00.000Z',
+ workspaceId: '20202020-1111-4111-8111-111111111111',
+ twentyStandardApplicationId: '20202020-2222-4222-8222-222222222222',
+});
+
+const withoutObject = (nameSingular: keyof typeof STANDARD_OBJECTS) => ({
+ ...flatObjectMetadataMaps,
+ byUniversalIdentifier: Object.fromEntries(
+ Object.entries(flatObjectMetadataMaps.byUniversalIdentifier).filter(
+ ([universalIdentifier]) =>
+ universalIdentifier !==
+ STANDARD_OBJECTS[nameSingular].universalIdentifier,
+ ),
+ ),
+});
+
+describe('resolveSystemRelationTargetFlatObjectMetadatas', () => {
+ it('resolves every relation target the workspace has', () => {
+ const {
+ standardTargetFlatObjectMetadataByNameSingular,
+ missingDefaultRelationObjectNameSingulars,
+ } = resolveSystemRelationTargetFlatObjectMetadatas({
+ flatObjectMetadataMaps,
+ });
+
+ expect(Object.keys(standardTargetFlatObjectMetadataByNameSingular)).toEqual(
+ [
+ 'timelineActivity',
+ 'attachment',
+ 'noteTarget',
+ 'taskTarget',
+ 'agentChatThreadTarget',
+ ],
+ );
+ expect(missingDefaultRelationObjectNameSingulars).toEqual([]);
+ });
+
+ // Its upgrade command provisions the chat target and backfills the objects
+ // created before it ran, so creating an object meanwhile must still work.
+ it('leaves out the chat target without reporting it while it is not provisioned', () => {
+ const {
+ standardTargetFlatObjectMetadataByNameSingular,
+ missingDefaultRelationObjectNameSingulars,
+ } = resolveSystemRelationTargetFlatObjectMetadatas({
+ flatObjectMetadataMaps: withoutObject('agentChatThreadTarget'),
+ });
+
+ expect(Object.keys(standardTargetFlatObjectMetadataByNameSingular)).toEqual(
+ ['timelineActivity', 'attachment', 'noteTarget', 'taskTarget'],
+ );
+ expect(missingDefaultRelationObjectNameSingulars).toEqual([]);
+ });
+
+ it('reports a missing default relation target', () => {
+ const {
+ standardTargetFlatObjectMetadataByNameSingular,
+ missingDefaultRelationObjectNameSingulars,
+ } = resolveSystemRelationTargetFlatObjectMetadatas({
+ flatObjectMetadataMaps: withoutObject('noteTarget'),
+ });
+
+ expect(missingDefaultRelationObjectNameSingulars).toEqual(['noteTarget']);
+ expect(standardTargetFlatObjectMetadataByNameSingular).not.toHaveProperty(
+ 'noteTarget',
+ );
+ });
+});
diff --git a/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/build-system-relation-flat-field-metadatas-for-object.util.ts b/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/build-system-relation-flat-field-metadatas-for-object.util.ts
index 493fea41af2..93fe4b049af 100644
--- a/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/build-system-relation-flat-field-metadatas-for-object.util.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/build-system-relation-flat-field-metadatas-for-object.util.ts
@@ -4,11 +4,12 @@ import {
STANDARD_OBJECTS,
} from 'twenty-shared/metadata';
import { FieldMetadataType } from 'twenty-shared/types';
-import { capitalize } from 'twenty-shared/utils';
+import { capitalize, isDefined } from 'twenty-shared/utils';
import { RelationType } from 'src/engine/metadata-modules/field-metadata/interfaces/relation-type.interface';
import { computeMorphOrRelationFieldJoinColumnName } from 'src/engine/metadata-modules/field-metadata/utils/compute-morph-or-relation-field-join-column-name.util';
import { generateMorphOrRelationFlatFieldMetadataPair } from 'src/engine/metadata-modules/flat-field-metadata/utils/generate-morph-or-relation-flat-field-metadata-pair.util';
+import { OPTIONAL_DEFAULT_RELATIONS_OBJECTS_STANDARD_IDS } from 'src/engine/metadata-modules/object-metadata/constants/optional-default-relations-object-standard-ids.constant';
import { computeSystemMorphTargetFieldLabel } from 'src/engine/metadata-modules/object-metadata/utils/compute-system-morph-target-field-label.util';
import { STANDARD_RELATION_FIELD_PROPERTIES_BY_RELATION_OBJECT } from 'src/engine/metadata-modules/object-metadata/constants/standard-relation-field-properties.constant';
import { i18nLabel } from 'src/engine/workspace-manager/twenty-standard-application/utils/i18n-label.util';
@@ -20,13 +21,32 @@ import { type UniversalFlatObjectMetadata } from 'src/engine/workspace-manager/w
type DefaultRelationStandardObjectNameSingular =
(typeof DEFAULT_RELATIONS_OBJECTS_STANDARD_IDS)[number];
+type OptionalDefaultRelationStandardObjectNameSingular =
+ (typeof OPTIONAL_DEFAULT_RELATIONS_OBJECTS_STANDARD_IDS)[number];
+
+// A pair is minted per target passed: object creation insists on the default
+// targets itself, while a backfill passes only the target it provisions.
+export type StandardTargetFlatObjectMetadataByNameSingular = Partial<
+ Record<
+ | DefaultRelationStandardObjectNameSingular
+ | OptionalDefaultRelationStandardObjectNameSingular,
+ UniversalFlatObjectMetadata
+ >
+>;
+
const MORPH_ID_BY_STANDARD_OBJECT_NAME_SINGULAR = {
timelineActivity:
STANDARD_OBJECTS.timelineActivity.morphIds.targetMorphId.morphId,
attachment: STANDARD_OBJECTS.attachment.morphIds.targetMorphId.morphId,
noteTarget: STANDARD_OBJECTS.noteTarget.morphIds.targetMorphId.morphId,
taskTarget: STANDARD_OBJECTS.taskTarget.morphIds.targetMorphId.morphId,
-} satisfies Record<DefaultRelationStandardObjectNameSingular, string | null>;
+ agentChatThreadTarget:
+ STANDARD_OBJECTS.agentChatThreadTarget.morphIds.targetMorphId.morphId,
+} satisfies Record<
+ | DefaultRelationStandardObjectNameSingular
+ | OptionalDefaultRelationStandardObjectNameSingular,
+ string | null
+>;
export type SystemRelationFlatFieldMetadataBundle = {
forwardFlatFieldMetadata: UniversalFlatFieldMetadata;
@@ -36,10 +56,7 @@ export type SystemRelationFlatFieldMetadataBundle = {
type BuildSystemRelationFlatFieldMetadatasForObjectArgs = {
sourceFlatObjectMetadata: UniversalFlatObjectMetadata;
- standardTargetFlatObjectMetadataByNameSingular: Record<
- DefaultRelationStandardObjectNameSingular,
- UniversalFlatObjectMetadata
- >;
+ standardTargetFlatObjectMetadataByNameSingular: StandardTargetFlatObjectMetadataByNameSingular;
applicationUniversalIdentifier: string;
};
@@ -48,12 +65,19 @@ export const buildSystemRelationFlatFieldMetadatasForObject = ({
standardTargetFlatObjectMetadataByNameSingular,
applicationUniversalIdentifier,
}: BuildSystemRelationFlatFieldMetadatasForObjectArgs): SystemRelationFlatFieldMetadataBundle[] =>
- DEFAULT_RELATIONS_OBJECTS_STANDARD_IDS.map((standardObjectNameSingular) => {
+ [
+ ...DEFAULT_RELATIONS_OBJECTS_STANDARD_IDS,
+ ...OPTIONAL_DEFAULT_RELATIONS_OBJECTS_STANDARD_IDS,
+ ].flatMap((standardObjectNameSingular) => {
const targetFlatObjectMetadata =
standardTargetFlatObjectMetadataByNameSingular[
standardObjectNameSingular
];
+ if (!isDefined(targetFlatObjectMetadata)) {
+ return [];
+ }
+
const reverseFieldName = `target${capitalize(
sourceFlatObjectMetadata.nameSingular,
)}`;
@@ -120,9 +144,11 @@ export const buildSystemRelationFlatFieldMetadatasForObject = ({
const [forwardFlatFieldMetadata, reverseFlatFieldMetadata] =
flatFieldMetadatas;
- return {
- forwardFlatFieldMetadata,
- reverseFlatFieldMetadata,
- flatIndexMetadata: indexMetadatas[0],
- };
+ return [
+ {
+ forwardFlatFieldMetadata,
+ reverseFlatFieldMetadata,
+ flatIndexMetadata: indexMetadatas[0],
+ },
+ ];
});
diff --git a/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/resolve-system-relation-target-flat-object-metadatas.util.ts b/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/resolve-system-relation-target-flat-object-metadatas.util.ts
new file mode 100644
index 00000000000..3b2f824bec1
--- /dev/null
+++ b/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/resolve-system-relation-target-flat-object-metadatas.util.ts
@@ -0,0 +1,59 @@
+import {
+ DEFAULT_RELATIONS_OBJECTS_STANDARD_IDS,
+ STANDARD_OBJECTS,
+} from 'twenty-shared/metadata';
+import { isDefined } from 'twenty-shared/utils';
+
+import { type AllFlatEntityMaps } from 'src/engine/metadata-modules/flat-entity/types/all-flat-entity-maps.type';
+import { OPTIONAL_DEFAULT_RELATIONS_OBJECTS_STANDARD_IDS } from 'src/engine/metadata-modules/object-metadata/constants/optional-default-relations-object-standard-ids.constant';
+import { type StandardTargetFlatObjectMetadataByNameSingular } from 'src/engine/metadata-modules/object-metadata/utils/build-system-relation-flat-field-metadatas-for-object.util';
+
+type DefaultRelationStandardObjectNameSingular =
+ (typeof DEFAULT_RELATIONS_OBJECTS_STANDARD_IDS)[number];
+
+// A default relation object must exist for an object to be created, but an
+// optional one is provisioned by its own upgrade command, which also backfills
+// the objects created before it ran, so its absence must not block creation.
+export const resolveSystemRelationTargetFlatObjectMetadatas = ({
+ flatObjectMetadataMaps,
+}: Pick<AllFlatEntityMaps, 'flatObjectMetadataMaps'>): {
+ standardTargetFlatObjectMetadataByNameSingular: StandardTargetFlatObjectMetadataByNameSingular;
+ missingDefaultRelationObjectNameSingulars: DefaultRelationStandardObjectNameSingular[];
+} => {
+ const standardTargetFlatObjectMetadataByNameSingular: StandardTargetFlatObjectMetadataByNameSingular =
+ {};
+ const missingDefaultRelationObjectNameSingulars: DefaultRelationStandardObjectNameSingular[] =
+ [];
+
+ for (const nameSingular of DEFAULT_RELATIONS_OBJECTS_STANDARD_IDS) {
+ const flatObjectMetadata =
+ flatObjectMetadataMaps.byUniversalIdentifier[
+ STANDARD_OBJECTS[nameSingular].universalIdentifier
+ ];
+
+ if (!isDefined(flatObjectMetadata)) {
+ missingDefaultRelationObjectNameSingulars.push(nameSingular);
+ continue;
+ }
+
+ standardTargetFlatObjectMetadataByNameSingular[nameSingular] =
+ flatObjectMetadata;
+ }
+
+ for (const nameSingular of OPTIONAL_DEFAULT_RELATIONS_OBJECTS_STANDARD_IDS) {
+ const flatObjectMetadata =
+ flatObjectMetadataMaps.byUniversalIdentifier[
+ STANDARD_OBJECTS[nameSingular].universalIdentifier
+ ];
+
+ if (isDefined(flatObjectMetadata)) {
+ standardTargetFlatObjectMetadataByNameSingular[nameSingular] =
+ flatObjectMetadata;
+ }
+ }
+
+ return {
+ standardTargetFlatObjectMetadataByNameSingular,
+ missingDefaultRelationObjectNameSingulars,
+ };
+};
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/search-fields-by-standard-object-name.constant.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/search-fields-by-standard-object-name.constant.ts
index 466bbe7214a..229a9e96e8e 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/search-fields-by-standard-object-name.constant.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/constants/search-fields-by-standard-object-name.constant.ts
@@ -5,6 +5,7 @@ import { type AllStandardObjectName } from 'src/engine/workspace-manager/twenty-
export const SEARCH_FIELDS_BY_STANDARD_OBJECT_NAME = {
agentChatThread: [],
+ agentChatThreadTarget: [],
agentTurn: [],
agentMessage: [],
agentMessagePart: [],
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-object-metadata-related-entity-ids.util.spec.ts.snap b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-object-metadata-related-entity-ids.util.spec.ts.snap
index 24987f4edcc..1e1f4af78b8 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-object-metadata-related-entity-ids.util.spec.ts.snap
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-object-metadata-related-entity-ids.util.spec.ts.snap
@@ -5,262 +5,295 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"agentChatThread": {
"fields": {
"activeStreamId": {
- "id": "00000000-0000-0000-0000-000000001011",
+ "id": "00000000-0000-0000-0000-000000001014",
},
"archivedAt": {
- "id": "00000000-0000-0000-0000-000000001000",
+ "id": "00000000-0000-0000-0000-000000001003",
},
"attachments": {
- "id": "00000000-0000-0000-0000-000000001016",
+ "id": "00000000-0000-0000-0000-000000001019",
},
"contextWindowTokens": {
- "id": "00000000-0000-0000-0000-000000001005",
+ "id": "00000000-0000-0000-0000-000000001008",
},
"conversationSize": {
- "id": "00000000-0000-0000-0000-000000001006",
+ "id": "00000000-0000-0000-0000-000000001009",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000997",
+ "id": "00000000-0000-0000-0000-000000001000",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000999",
+ "id": "00000000-0000-0000-0000-000000001002",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000996",
+ "id": "00000000-0000-0000-0000-000000000999",
},
"lastStreamError": {
- "id": "00000000-0000-0000-0000-000000001013",
+ "id": "00000000-0000-0000-0000-000000001016",
},
"messages": {
- "id": "00000000-0000-0000-0000-000000001015",
+ "id": "00000000-0000-0000-0000-000000001018",
},
"pendingQuestionMessageId": {
- "id": "00000000-0000-0000-0000-000000001012",
+ "id": "00000000-0000-0000-0000-000000001015",
+ },
+ "recordTargets": {
+ "id": "00000000-0000-0000-0000-000000001020",
},
"title": {
- "id": "00000000-0000-0000-0000-000000001002",
+ "id": "00000000-0000-0000-0000-000000001005",
},
"totalCacheCreationTokens": {
- "id": "00000000-0000-0000-0000-000000001010",
+ "id": "00000000-0000-0000-0000-000000001013",
},
"totalCacheReadTokens": {
- "id": "00000000-0000-0000-0000-000000001009",
+ "id": "00000000-0000-0000-0000-000000001012",
},
"totalInputCredits": {
- "id": "00000000-0000-0000-0000-000000001007",
+ "id": "00000000-0000-0000-0000-000000001010",
},
"totalInputTokens": {
- "id": "00000000-0000-0000-0000-000000001003",
+ "id": "00000000-0000-0000-0000-000000001006",
},
"totalOutputCredits": {
- "id": "00000000-0000-0000-0000-000000001008",
+ "id": "00000000-0000-0000-0000-000000001011",
},
"totalOutputTokens": {
- "id": "00000000-0000-0000-0000-000000001004",
+ "id": "00000000-0000-0000-0000-000000001007",
},
"turns": {
- "id": "00000000-0000-0000-0000-000000001014",
+ "id": "00000000-0000-0000-0000-000000001017",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000998",
+ "id": "00000000-0000-0000-0000-000000001001",
},
"userWorkspaceId": {
- "id": "00000000-0000-0000-0000-000000001001",
+ "id": "00000000-0000-0000-0000-000000001004",
},
},
- "id": "00000000-0000-0000-0000-000000001017",
+ "id": "00000000-0000-0000-0000-000000001021",
"views": undefined,
},
+ "agentChatThreadTarget": {
+ "fields": {
+ "createdAt": {
+ "id": "00000000-0000-0000-0000-000000001023",
+ },
+ "deletedAt": {
+ "id": "00000000-0000-0000-0000-000000001025",
+ },
+ "id": {
+ "id": "00000000-0000-0000-0000-000000001022",
+ },
+ "targetCompany": {
+ "id": "00000000-0000-0000-0000-000000001028",
+ },
+ "targetOpportunity": {
+ "id": "00000000-0000-0000-0000-000000001029",
+ },
+ "targetPerson": {
+ "id": "00000000-0000-0000-0000-000000001027",
+ },
+ "thread": {
+ "id": "00000000-0000-0000-0000-000000001026",
+ },
+ "updatedAt": {
+ "id": "00000000-0000-0000-0000-000000001024",
+ },
+ },
+ "id": "00000000-0000-0000-0000-000000001030",
+ "views": {},
+ },
"agentMessage": {
"fields": {
"agentId": {
- "id": "00000000-0000-0000-0000-000000001031",
+ "id": "00000000-0000-0000-0000-000000001044",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000001028",
+ "id": "00000000-0000-0000-0000-000000001041",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000001030",
+ "id": "00000000-0000-0000-0000-000000001043",
},
"id": {
- "id": "00000000-0000-0000-0000-000000001027",
+ "id": "00000000-0000-0000-0000-000000001040",
},
"isHidden": {
- "id": "00000000-0000-0000-0000-000000001036",
+ "id": "00000000-0000-0000-0000-000000001049",
},
"parts": {
- "id": "00000000-0000-0000-0000-000000001040",
+ "id": "00000000-0000-0000-0000-000000001053",
},
"processedAt": {
- "id": "00000000-0000-0000-0000-000000001037",
+ "id": "00000000-0000-0000-0000-000000001050",
},
"role": {
- "id": "00000000-0000-0000-0000-000000001034",
+ "id": "00000000-0000-0000-0000-000000001047",
},
"senderApplicationId": {
- "id": "00000000-0000-0000-0000-000000001033",
+ "id": "00000000-0000-0000-0000-000000001046",
},
"senderUserWorkspaceId": {
- "id": "00000000-0000-0000-0000-000000001032",
+ "id": "00000000-0000-0000-0000-000000001045",
},
"status": {
- "id": "00000000-0000-0000-0000-000000001035",
+ "id": "00000000-0000-0000-0000-000000001048",
},
"thread": {
- "id": "00000000-0000-0000-0000-000000001038",
+ "id": "00000000-0000-0000-0000-000000001051",
},
"turn": {
- "id": "00000000-0000-0000-0000-000000001039",
+ "id": "00000000-0000-0000-0000-000000001052",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000001029",
+ "id": "00000000-0000-0000-0000-000000001042",
},
},
- "id": "00000000-0000-0000-0000-000000001041",
+ "id": "00000000-0000-0000-0000-000000001054",
"views": undefined,
},
"agentMessagePart": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000001043",
+ "id": "00000000-0000-0000-0000-000000001056",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000001045",
+ "id": "00000000-0000-0000-0000-000000001058",
},
"errorDetails": {
- "id": "00000000-0000-0000-0000-000000001057",
+ "id": "00000000-0000-0000-0000-000000001070",
},
"errorMessage": {
- "id": "00000000-0000-0000-0000-000000001056",
+ "id": "00000000-0000-0000-0000-000000001069",
},
"fileFilename": {
- "id": "00000000-0000-0000-0000-000000001065",
+ "id": "00000000-0000-0000-0000-000000001078",
},
"fileId": {
- "id": "00000000-0000-0000-0000-000000001066",
+ "id": "00000000-0000-0000-0000-000000001079",
},
"id": {
- "id": "00000000-0000-0000-0000-000000001042",
+ "id": "00000000-0000-0000-0000-000000001055",
},
"message": {
- "id": "00000000-0000-0000-0000-000000001068",
+ "id": "00000000-0000-0000-0000-000000001081",
},
"orderIndex": {
- "id": "00000000-0000-0000-0000-000000001046",
+ "id": "00000000-0000-0000-0000-000000001059",
},
"providerExecuted": {
- "id": "00000000-0000-0000-0000-000000001055",
+ "id": "00000000-0000-0000-0000-000000001068",
},
"providerMetadata": {
- "id": "00000000-0000-0000-0000-000000001067",
+ "id": "00000000-0000-0000-0000-000000001080",
},
"reasoningContent": {
- "id": "00000000-0000-0000-0000-000000001049",
+ "id": "00000000-0000-0000-0000-000000001062",
},
"sourceDocumentFilename": {
- "id": "00000000-0000-0000-0000-000000001064",
+ "id": "00000000-0000-0000-0000-000000001077",
},
"sourceDocumentMediaType": {
- "id": "00000000-0000-0000-0000-000000001062",
+ "id": "00000000-0000-0000-0000-000000001075",
},
"sourceDocumentSourceId": {
- "id": "00000000-0000-0000-0000-000000001061",
+ "id": "00000000-0000-0000-0000-000000001074",
},
"sourceDocumentTitle": {
- "id": "00000000-0000-0000-0000-000000001063",
+ "id": "00000000-0000-0000-0000-000000001076",
},
"sourceUrlSourceId": {
- "id": "00000000-0000-0000-0000-000000001058",
+ "id": "00000000-0000-0000-0000-000000001071",
},
"sourceUrlTitle": {
- "id": "00000000-0000-0000-0000-000000001060",
+ "id": "00000000-0000-0000-0000-000000001073",
},
"sourceUrlUrl": {
- "id": "00000000-0000-0000-0000-000000001059",
+ "id": "00000000-0000-0000-0000-000000001072",
},
"state": {
- "id": "00000000-0000-0000-0000-000000001054",
+ "id": "00000000-0000-0000-0000-000000001067",
},
"textContent": {
- "id": "00000000-0000-0000-0000-000000001048",
+ "id": "00000000-0000-0000-0000-000000001061",
},
"toolCallId": {
- "id": "00000000-0000-0000-0000-000000001051",
+ "id": "00000000-0000-0000-0000-000000001064",
},
"toolInput": {
- "id": "00000000-0000-0000-0000-000000001052",
+ "id": "00000000-0000-0000-0000-000000001065",
},
"toolName": {
- "id": "00000000-0000-0000-0000-000000001050",
+ "id": "00000000-0000-0000-0000-000000001063",
},
"toolOutput": {
- "id": "00000000-0000-0000-0000-000000001053",
+ "id": "00000000-0000-0000-0000-000000001066",
},
"type": {
- "id": "00000000-0000-0000-0000-000000001047",
+ "id": "00000000-0000-0000-0000-000000001060",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000001044",
+ "id": "00000000-0000-0000-0000-000000001057",
},
},
- "id": "00000000-0000-0000-0000-000000001069",
+ "id": "00000000-0000-0000-0000-000000001082",
"views": undefined,
},
"agentTurn": {
"fields": {
"agentId": {
- "id": "00000000-0000-0000-0000-000000001022",
+ "id": "00000000-0000-0000-0000-000000001035",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000001019",
+ "id": "00000000-0000-0000-0000-000000001032",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000001021",
+ "id": "00000000-0000-0000-0000-000000001034",
},
"evaluations": {
- "id": "00000000-0000-0000-0000-000000001025",
+ "id": "00000000-0000-0000-0000-000000001038",
},
"id": {
- "id": "00000000-0000-0000-0000-000000001018",
+ "id": "00000000-0000-0000-0000-000000001031",
},
"messages": {
- "id": "00000000-0000-0000-0000-000000001024",
+ "id": "00000000-0000-0000-0000-000000001037",
},
"thread": {
- "id": "00000000-0000-0000-0000-000000001023",
+ "id": "00000000-0000-0000-0000-000000001036",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000001020",
+ "id": "00000000-0000-0000-0000-000000001033",
},
},
- "id": "00000000-0000-0000-0000-000000001026",
+ "id": "00000000-0000-0000-0000-000000001039",
"views": undefined,
},
"agentTurnEvaluation": {
"fields": {
"comment": {
- "id": "00000000-0000-0000-0000-000000001075",
+ "id": "00000000-0000-0000-0000-000000001088",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000001071",
+ "id": "00000000-0000-0000-0000-000000001084",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000001073",
+ "id": "00000000-0000-0000-0000-000000001086",
},
"id": {
- "id": "00000000-0000-0000-0000-000000001070",
+ "id": "00000000-0000-0000-0000-000000001083",
},
"score": {
- "id": "00000000-0000-0000-0000-000000001074",
+ "id": "00000000-0000-0000-0000-000000001087",
},
"turn": {
- "id": "00000000-0000-0000-0000-000000001076",
+ "id": "00000000-0000-0000-0000-000000001089",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000001072",
+ "id": "00000000-0000-0000-0000-000000001085",
},
},
- "id": "00000000-0000-0000-0000-000000001077",
+ "id": "00000000-0000-0000-0000-000000001090",
"views": undefined,
},
"attachment": {
@@ -1018,64 +1051,64 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"campaignDelivery": {
"fields": {
"bouncedAt": {
- "id": "00000000-0000-0000-0000-000000001093",
+ "id": "00000000-0000-0000-0000-000000001106",
},
"campaignId": {
- "id": "00000000-0000-0000-0000-000000001082",
+ "id": "00000000-0000-0000-0000-000000001095",
},
"claimExpiresAt": {
- "id": "00000000-0000-0000-0000-000000001089",
+ "id": "00000000-0000-0000-0000-000000001102",
},
"claimToken": {
- "id": "00000000-0000-0000-0000-000000001088",
+ "id": "00000000-0000-0000-0000-000000001101",
},
"complainedAt": {
- "id": "00000000-0000-0000-0000-000000001094",
+ "id": "00000000-0000-0000-0000-000000001107",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000001079",
+ "id": "00000000-0000-0000-0000-000000001092",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000001081",
+ "id": "00000000-0000-0000-0000-000000001094",
},
"deliveredAt": {
- "id": "00000000-0000-0000-0000-000000001092",
+ "id": "00000000-0000-0000-0000-000000001105",
},
"failureReason": {
- "id": "00000000-0000-0000-0000-000000001087",
+ "id": "00000000-0000-0000-0000-000000001100",
},
"id": {
- "id": "00000000-0000-0000-0000-000000001078",
+ "id": "00000000-0000-0000-0000-000000001091",
},
"personId": {
- "id": "00000000-0000-0000-0000-000000001083",
+ "id": "00000000-0000-0000-0000-000000001096",
},
"providerMessageId": {
- "id": "00000000-0000-0000-0000-000000001090",
+ "id": "00000000-0000-0000-0000-000000001103",
},
"recipientEmail": {
- "id": "00000000-0000-0000-0000-000000001084",
+ "id": "00000000-0000-0000-0000-000000001097",
},
"rejectedAt": {
- "id": "00000000-0000-0000-0000-000000001095",
+ "id": "00000000-0000-0000-0000-000000001108",
},
"renderingFailedAt": {
- "id": "00000000-0000-0000-0000-000000001096",
+ "id": "00000000-0000-0000-0000-000000001109",
},
"sentAt": {
- "id": "00000000-0000-0000-0000-000000001091",
+ "id": "00000000-0000-0000-0000-000000001104",
},
"skipReason": {
- "id": "00000000-0000-0000-0000-000000001086",
+ "id": "00000000-0000-0000-0000-000000001099",
},
"state": {
- "id": "00000000-0000-0000-0000-000000001085",
+ "id": "00000000-0000-0000-0000-000000001098",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000001080",
+ "id": "00000000-0000-0000-0000-000000001093",
},
},
- "id": "00000000-0000-0000-0000-000000001097",
+ "id": "00000000-0000-0000-0000-000000001110",
"views": undefined,
},
"company": {
@@ -1086,14 +1119,17 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"address": {
"id": "00000000-0000-0000-0000-000000000235",
},
+ "agentChatThreadTargets": {
+ "id": "00000000-0000-0000-0000-000000000242",
+ },
"annualRevenue": {
"id": "00000000-0000-0000-0000-000000000237",
},
"attachments": {
- "id": "00000000-0000-0000-0000-000000000245",
+ "id": "00000000-0000-0000-0000-000000000246",
},
"calendarEventTargets": {
- "id": "00000000-0000-0000-0000-000000000242",
+ "id": "00000000-0000-0000-0000-000000000243",
},
"createdAt": {
"id": "00000000-0000-0000-0000-000000000226",
@@ -1114,7 +1150,7 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"id": "00000000-0000-0000-0000-000000000236",
},
"messageThreadTargets": {
- "id": "00000000-0000-0000-0000-000000000243",
+ "id": "00000000-0000-0000-0000-000000000244",
},
"name": {
"id": "00000000-0000-0000-0000-000000000233",
@@ -1123,7 +1159,7 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"id": "00000000-0000-0000-0000-000000000241",
},
"opportunities": {
- "id": "00000000-0000-0000-0000-000000000244",
+ "id": "00000000-0000-0000-0000-000000000245",
},
"people": {
"id": "00000000-0000-0000-0000-000000000238",
@@ -1138,7 +1174,7 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"id": "00000000-0000-0000-0000-000000000240",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000246",
+ "id": "00000000-0000-0000-0000-000000000247",
},
"updatedAt": {
"id": "00000000-0000-0000-0000-000000000227",
@@ -1147,97 +1183,97 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"id": "00000000-0000-0000-0000-000000000230",
},
},
- "id": "00000000-0000-0000-0000-000000000275",
+ "id": "00000000-0000-0000-0000-000000000276",
"views": {
"allCompanies": {
- "id": "00000000-0000-0000-0000-000000000254",
+ "id": "00000000-0000-0000-0000-000000000255",
"viewFieldGroups": {},
"viewFields": {
"accountOwner": {
- "id": "00000000-0000-0000-0000-000000000250",
+ "id": "00000000-0000-0000-0000-000000000251",
},
"address": {
- "id": "00000000-0000-0000-0000-000000000253",
+ "id": "00000000-0000-0000-0000-000000000254",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000251",
+ "id": "00000000-0000-0000-0000-000000000252",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000249",
+ "id": "00000000-0000-0000-0000-000000000250",
},
"domainName": {
- "id": "00000000-0000-0000-0000-000000000248",
+ "id": "00000000-0000-0000-0000-000000000249",
},
"linkedinLink": {
- "id": "00000000-0000-0000-0000-000000000252",
+ "id": "00000000-0000-0000-0000-000000000253",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000247",
+ "id": "00000000-0000-0000-0000-000000000248",
},
},
"viewGroups": {},
},
"companyRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000274",
+ "id": "00000000-0000-0000-0000-000000000275",
"viewFieldGroups": {
"business": {
- "id": "00000000-0000-0000-0000-000000000271",
+ "id": "00000000-0000-0000-0000-000000000272",
},
"contact": {
- "id": "00000000-0000-0000-0000-000000000272",
+ "id": "00000000-0000-0000-0000-000000000273",
},
"general": {
- "id": "00000000-0000-0000-0000-000000000270",
+ "id": "00000000-0000-0000-0000-000000000271",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000273",
+ "id": "00000000-0000-0000-0000-000000000274",
},
},
"viewFields": {
"accountOwner": {
- "id": "00000000-0000-0000-0000-000000000256",
+ "id": "00000000-0000-0000-0000-000000000257",
},
"address": {
- "id": "00000000-0000-0000-0000-000000000259",
+ "id": "00000000-0000-0000-0000-000000000260",
},
"annualRevenue": {
- "id": "00000000-0000-0000-0000-000000000257",
+ "id": "00000000-0000-0000-0000-000000000258",
},
"attachments": {
- "id": "00000000-0000-0000-0000-000000000268",
+ "id": "00000000-0000-0000-0000-000000000269",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000260",
+ "id": "00000000-0000-0000-0000-000000000261",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000261",
+ "id": "00000000-0000-0000-0000-000000000262",
},
"domainName": {
- "id": "00000000-0000-0000-0000-000000000255",
+ "id": "00000000-0000-0000-0000-000000000256",
},
"linkedinLink": {
- "id": "00000000-0000-0000-0000-000000000258",
+ "id": "00000000-0000-0000-0000-000000000259",
},
"noteTargets": {
- "id": "00000000-0000-0000-0000-000000000266",
+ "id": "00000000-0000-0000-0000-000000000267",
},
"opportunities": {
- "id": "00000000-0000-0000-0000-000000000267",
+ "id": "00000000-0000-0000-0000-000000000268",
},
"people": {
- "id": "00000000-0000-0000-0000-000000000264",
+ "id": "00000000-0000-0000-0000-000000000265",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000265",
+ "id": "00000000-0000-0000-0000-000000000266",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000269",
+ "id": "00000000-0000-0000-0000-000000000270",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000262",
+ "id": "00000000-0000-0000-0000-000000000263",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000263",
+ "id": "00000000-0000-0000-0000-000000000264",
},
},
"viewGroups": {},
@@ -1247,59 +1283,59 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"dashboard": {
"fields": {
"attachments": {
- "id": "00000000-0000-0000-0000-000000000287",
+ "id": "00000000-0000-0000-0000-000000000288",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000277",
+ "id": "00000000-0000-0000-0000-000000000278",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000280",
+ "id": "00000000-0000-0000-0000-000000000281",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000279",
+ "id": "00000000-0000-0000-0000-000000000280",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000276",
+ "id": "00000000-0000-0000-0000-000000000277",
},
"pageLayoutId": {
- "id": "00000000-0000-0000-0000-000000000285",
+ "id": "00000000-0000-0000-0000-000000000286",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000282",
+ "id": "00000000-0000-0000-0000-000000000283",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000283",
+ "id": "00000000-0000-0000-0000-000000000284",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000286",
+ "id": "00000000-0000-0000-0000-000000000287",
},
"title": {
- "id": "00000000-0000-0000-0000-000000000284",
+ "id": "00000000-0000-0000-0000-000000000285",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000278",
+ "id": "00000000-0000-0000-0000-000000000279",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000281",
+ "id": "00000000-0000-0000-0000-000000000282",
},
},
- "id": "00000000-0000-0000-0000-000000000293",
+ "id": "00000000-0000-0000-0000-000000000294",
"views": {
"allDashboards": {
- "id": "00000000-0000-0000-0000-000000000292",
+ "id": "00000000-0000-0000-0000-000000000293",
"viewFieldGroups": {},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000290",
+ "id": "00000000-0000-0000-0000-000000000291",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000289",
+ "id": "00000000-0000-0000-0000-000000000290",
},
"title": {
- "id": "00000000-0000-0000-0000-000000000288",
+ "id": "00000000-0000-0000-0000-000000000289",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000291",
+ "id": "00000000-0000-0000-0000-000000000292",
},
},
"viewGroups": {},
@@ -1309,118 +1345,118 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"message": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000505",
+ "id": "00000000-0000-0000-0000-000000000506",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000508",
+ "id": "00000000-0000-0000-0000-000000000509",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000507",
+ "id": "00000000-0000-0000-0000-000000000508",
},
"headerMessageId": {
- "id": "00000000-0000-0000-0000-000000000512",
+ "id": "00000000-0000-0000-0000-000000000513",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000504",
+ "id": "00000000-0000-0000-0000-000000000505",
},
"isDraft": {
- "id": "00000000-0000-0000-0000-000000000520",
+ "id": "00000000-0000-0000-0000-000000000521",
},
"messageCampaign": {
- "id": "00000000-0000-0000-0000-000000000519",
+ "id": "00000000-0000-0000-0000-000000000520",
},
"messageChannelMessageAssociations": {
- "id": "00000000-0000-0000-0000-000000000518",
+ "id": "00000000-0000-0000-0000-000000000519",
},
"messageParticipants": {
- "id": "00000000-0000-0000-0000-000000000517",
+ "id": "00000000-0000-0000-0000-000000000518",
},
"messageThread": {
- "id": "00000000-0000-0000-0000-000000000513",
+ "id": "00000000-0000-0000-0000-000000000514",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000510",
+ "id": "00000000-0000-0000-0000-000000000511",
},
"receivedAt": {
- "id": "00000000-0000-0000-0000-000000000516",
+ "id": "00000000-0000-0000-0000-000000000517",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000511",
+ "id": "00000000-0000-0000-0000-000000000512",
},
"subject": {
- "id": "00000000-0000-0000-0000-000000000514",
+ "id": "00000000-0000-0000-0000-000000000515",
},
"text": {
- "id": "00000000-0000-0000-0000-000000000515",
+ "id": "00000000-0000-0000-0000-000000000516",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000506",
+ "id": "00000000-0000-0000-0000-000000000507",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000509",
+ "id": "00000000-0000-0000-0000-000000000510",
},
},
- "id": "00000000-0000-0000-0000-000000000539",
+ "id": "00000000-0000-0000-0000-000000000540",
"views": {
"allMessages": {
- "id": "00000000-0000-0000-0000-000000000528",
+ "id": "00000000-0000-0000-0000-000000000529",
"viewFieldGroups": {},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000527",
+ "id": "00000000-0000-0000-0000-000000000528",
},
"headerMessageId": {
- "id": "00000000-0000-0000-0000-000000000525",
+ "id": "00000000-0000-0000-0000-000000000526",
},
"messageParticipants": {
- "id": "00000000-0000-0000-0000-000000000523",
+ "id": "00000000-0000-0000-0000-000000000524",
},
"messageThread": {
- "id": "00000000-0000-0000-0000-000000000522",
+ "id": "00000000-0000-0000-0000-000000000523",
},
"receivedAt": {
- "id": "00000000-0000-0000-0000-000000000524",
+ "id": "00000000-0000-0000-0000-000000000525",
},
"subject": {
- "id": "00000000-0000-0000-0000-000000000521",
+ "id": "00000000-0000-0000-0000-000000000522",
},
"text": {
- "id": "00000000-0000-0000-0000-000000000526",
+ "id": "00000000-0000-0000-0000-000000000527",
},
},
"viewGroups": {},
},
"messageRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000538",
+ "id": "00000000-0000-0000-0000-000000000539",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000536",
+ "id": "00000000-0000-0000-0000-000000000537",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000537",
+ "id": "00000000-0000-0000-0000-000000000538",
},
},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000534",
+ "id": "00000000-0000-0000-0000-000000000535",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000535",
+ "id": "00000000-0000-0000-0000-000000000536",
},
"headerMessageId": {
- "id": "00000000-0000-0000-0000-000000000533",
+ "id": "00000000-0000-0000-0000-000000000534",
},
"messageParticipants": {
- "id": "00000000-0000-0000-0000-000000000530",
+ "id": "00000000-0000-0000-0000-000000000531",
},
"messageThread": {
- "id": "00000000-0000-0000-0000-000000000529",
+ "id": "00000000-0000-0000-0000-000000000530",
},
"receivedAt": {
- "id": "00000000-0000-0000-0000-000000000531",
+ "id": "00000000-0000-0000-0000-000000000532",
},
"text": {
- "id": "00000000-0000-0000-0000-000000000532",
+ "id": "00000000-0000-0000-0000-000000000533",
},
},
"viewGroups": {},
@@ -1430,172 +1466,172 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"messageCampaign": {
"fields": {
"bodyTemplate": {
- "id": "00000000-0000-0000-0000-000000000304",
+ "id": "00000000-0000-0000-0000-000000000305",
},
"bouncedCount": {
- "id": "00000000-0000-0000-0000-000000000312",
+ "id": "00000000-0000-0000-0000-000000000313",
},
"complainedCount": {
- "id": "00000000-0000-0000-0000-000000000313",
+ "id": "00000000-0000-0000-0000-000000000314",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000295",
+ "id": "00000000-0000-0000-0000-000000000296",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000298",
+ "id": "00000000-0000-0000-0000-000000000299",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000297",
+ "id": "00000000-0000-0000-0000-000000000298",
},
"deliveredCount": {
- "id": "00000000-0000-0000-0000-000000000310",
+ "id": "00000000-0000-0000-0000-000000000311",
},
"failedCount": {
- "id": "00000000-0000-0000-0000-000000000311",
+ "id": "00000000-0000-0000-0000-000000000312",
},
"fromAddress": {
- "id": "00000000-0000-0000-0000-000000000305",
+ "id": "00000000-0000-0000-0000-000000000306",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000294",
+ "id": "00000000-0000-0000-0000-000000000295",
},
"list": {
- "id": "00000000-0000-0000-0000-000000000316",
+ "id": "00000000-0000-0000-0000-000000000317",
},
"messages": {
- "id": "00000000-0000-0000-0000-000000000318",
+ "id": "00000000-0000-0000-0000-000000000319",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000302",
+ "id": "00000000-0000-0000-0000-000000000303",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000300",
+ "id": "00000000-0000-0000-0000-000000000301",
},
"recipients": {
- "id": "00000000-0000-0000-0000-000000000319",
+ "id": "00000000-0000-0000-0000-000000000320",
},
"scheduledAt": {
- "id": "00000000-0000-0000-0000-000000000307",
+ "id": "00000000-0000-0000-0000-000000000308",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000301",
+ "id": "00000000-0000-0000-0000-000000000302",
},
"sentAt": {
- "id": "00000000-0000-0000-0000-000000000308",
+ "id": "00000000-0000-0000-0000-000000000309",
},
"sentCount": {
- "id": "00000000-0000-0000-0000-000000000309",
+ "id": "00000000-0000-0000-0000-000000000310",
},
"skippedCount": {
- "id": "00000000-0000-0000-0000-000000000314",
+ "id": "00000000-0000-0000-0000-000000000315",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000306",
+ "id": "00000000-0000-0000-0000-000000000307",
},
"subject": {
- "id": "00000000-0000-0000-0000-000000000303",
+ "id": "00000000-0000-0000-0000-000000000304",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000317",
+ "id": "00000000-0000-0000-0000-000000000318",
},
"unsubscribeTopicId": {
- "id": "00000000-0000-0000-0000-000000000315",
+ "id": "00000000-0000-0000-0000-000000000316",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000296",
+ "id": "00000000-0000-0000-0000-000000000297",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000299",
+ "id": "00000000-0000-0000-0000-000000000300",
},
},
- "id": "00000000-0000-0000-0000-000000000347",
+ "id": "00000000-0000-0000-0000-000000000348",
"views": {
"allMessageCampaigns": {
- "id": "00000000-0000-0000-0000-000000000335",
+ "id": "00000000-0000-0000-0000-000000000336",
"viewFieldGroups": {},
"viewFields": {
"bouncedCount": {
- "id": "00000000-0000-0000-0000-000000000331",
+ "id": "00000000-0000-0000-0000-000000000332",
},
"complainedCount": {
- "id": "00000000-0000-0000-0000-000000000332",
+ "id": "00000000-0000-0000-0000-000000000333",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000334",
+ "id": "00000000-0000-0000-0000-000000000335",
},
"deliveredCount": {
- "id": "00000000-0000-0000-0000-000000000328",
+ "id": "00000000-0000-0000-0000-000000000329",
},
"failedCount": {
- "id": "00000000-0000-0000-0000-000000000329",
+ "id": "00000000-0000-0000-0000-000000000330",
},
"fromAddress": {
- "id": "00000000-0000-0000-0000-000000000324",
+ "id": "00000000-0000-0000-0000-000000000325",
},
"list": {
- "id": "00000000-0000-0000-0000-000000000323",
+ "id": "00000000-0000-0000-0000-000000000324",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000320",
+ "id": "00000000-0000-0000-0000-000000000321",
},
"recipients": {
- "id": "00000000-0000-0000-0000-000000000333",
+ "id": "00000000-0000-0000-0000-000000000334",
},
"scheduledAt": {
- "id": "00000000-0000-0000-0000-000000000325",
+ "id": "00000000-0000-0000-0000-000000000326",
},
"sentAt": {
- "id": "00000000-0000-0000-0000-000000000326",
+ "id": "00000000-0000-0000-0000-000000000327",
},
"sentCount": {
- "id": "00000000-0000-0000-0000-000000000327",
+ "id": "00000000-0000-0000-0000-000000000328",
},
"skippedCount": {
- "id": "00000000-0000-0000-0000-000000000330",
+ "id": "00000000-0000-0000-0000-000000000331",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000322",
+ "id": "00000000-0000-0000-0000-000000000323",
},
"subject": {
- "id": "00000000-0000-0000-0000-000000000321",
+ "id": "00000000-0000-0000-0000-000000000322",
},
},
"viewGroups": {},
},
"messageCampaignRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000346",
+ "id": "00000000-0000-0000-0000-000000000347",
"viewFieldGroups": {
"stats": {
- "id": "00000000-0000-0000-0000-000000000345",
+ "id": "00000000-0000-0000-0000-000000000346",
},
},
"viewFields": {
"bouncedCount": {
- "id": "00000000-0000-0000-0000-000000000343",
+ "id": "00000000-0000-0000-0000-000000000344",
},
"complainedCount": {
- "id": "00000000-0000-0000-0000-000000000344",
+ "id": "00000000-0000-0000-0000-000000000345",
},
"deliveredCount": {
- "id": "00000000-0000-0000-0000-000000000340",
+ "id": "00000000-0000-0000-0000-000000000341",
},
"failedCount": {
- "id": "00000000-0000-0000-0000-000000000341",
+ "id": "00000000-0000-0000-0000-000000000342",
},
"scheduledAt": {
- "id": "00000000-0000-0000-0000-000000000337",
+ "id": "00000000-0000-0000-0000-000000000338",
},
"sentAt": {
- "id": "00000000-0000-0000-0000-000000000338",
+ "id": "00000000-0000-0000-0000-000000000339",
},
"sentCount": {
- "id": "00000000-0000-0000-0000-000000000339",
+ "id": "00000000-0000-0000-0000-000000000340",
},
"skippedCount": {
- "id": "00000000-0000-0000-0000-000000000342",
+ "id": "00000000-0000-0000-0000-000000000343",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000336",
+ "id": "00000000-0000-0000-0000-000000000337",
},
},
"viewGroups": {},
@@ -1605,103 +1641,103 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"messageChannelMessageAssociation": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000385",
+ "id": "00000000-0000-0000-0000-000000000386",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000388",
+ "id": "00000000-0000-0000-0000-000000000389",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000387",
+ "id": "00000000-0000-0000-0000-000000000388",
},
"direction": {
- "id": "00000000-0000-0000-0000-000000000397",
+ "id": "00000000-0000-0000-0000-000000000398",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000384",
+ "id": "00000000-0000-0000-0000-000000000385",
},
"message": {
- "id": "00000000-0000-0000-0000-000000000393",
+ "id": "00000000-0000-0000-0000-000000000394",
},
"messageChannelId": {
- "id": "00000000-0000-0000-0000-000000000392",
+ "id": "00000000-0000-0000-0000-000000000393",
},
"messageExternalId": {
- "id": "00000000-0000-0000-0000-000000000394",
+ "id": "00000000-0000-0000-0000-000000000395",
},
"messageFolders": {
- "id": "00000000-0000-0000-0000-000000000398",
+ "id": "00000000-0000-0000-0000-000000000399",
},
"messageThread": {
- "id": "00000000-0000-0000-0000-000000000395",
+ "id": "00000000-0000-0000-0000-000000000396",
},
"messageThreadExternalId": {
- "id": "00000000-0000-0000-0000-000000000396",
+ "id": "00000000-0000-0000-0000-000000000397",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000390",
+ "id": "00000000-0000-0000-0000-000000000391",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000391",
+ "id": "00000000-0000-0000-0000-000000000392",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000386",
+ "id": "00000000-0000-0000-0000-000000000387",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000389",
+ "id": "00000000-0000-0000-0000-000000000390",
},
},
- "id": "00000000-0000-0000-0000-000000000414",
+ "id": "00000000-0000-0000-0000-000000000415",
"views": {
"allMessageChannelMessageAssociations": {
- "id": "00000000-0000-0000-0000-000000000404",
+ "id": "00000000-0000-0000-0000-000000000405",
"viewFieldGroups": {},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000403",
+ "id": "00000000-0000-0000-0000-000000000404",
},
"direction": {
- "id": "00000000-0000-0000-0000-000000000402",
+ "id": "00000000-0000-0000-0000-000000000403",
},
"message": {
- "id": "00000000-0000-0000-0000-000000000400",
+ "id": "00000000-0000-0000-0000-000000000401",
},
"messageChannelId": {
- "id": "00000000-0000-0000-0000-000000000399",
+ "id": "00000000-0000-0000-0000-000000000400",
},
"messageExternalId": {
- "id": "00000000-0000-0000-0000-000000000401",
+ "id": "00000000-0000-0000-0000-000000000402",
},
},
"viewGroups": {},
},
"messageChannelMessageAssociationRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000413",
+ "id": "00000000-0000-0000-0000-000000000414",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000411",
+ "id": "00000000-0000-0000-0000-000000000412",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000412",
+ "id": "00000000-0000-0000-0000-000000000413",
},
},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000409",
+ "id": "00000000-0000-0000-0000-000000000410",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000410",
+ "id": "00000000-0000-0000-0000-000000000411",
},
"direction": {
- "id": "00000000-0000-0000-0000-000000000408",
+ "id": "00000000-0000-0000-0000-000000000409",
},
"message": {
- "id": "00000000-0000-0000-0000-000000000406",
+ "id": "00000000-0000-0000-0000-000000000407",
},
"messageChannelId": {
- "id": "00000000-0000-0000-0000-000000000405",
+ "id": "00000000-0000-0000-0000-000000000406",
},
"messageExternalId": {
- "id": "00000000-0000-0000-0000-000000000407",
+ "id": "00000000-0000-0000-0000-000000000408",
},
},
"viewGroups": {},
@@ -1711,76 +1747,76 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"messageChannelMessageAssociationMessageFolder": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000416",
+ "id": "00000000-0000-0000-0000-000000000417",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000419",
+ "id": "00000000-0000-0000-0000-000000000420",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000418",
+ "id": "00000000-0000-0000-0000-000000000419",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000415",
+ "id": "00000000-0000-0000-0000-000000000416",
},
"messageChannelMessageAssociation": {
- "id": "00000000-0000-0000-0000-000000000423",
+ "id": "00000000-0000-0000-0000-000000000424",
},
"messageFolderId": {
- "id": "00000000-0000-0000-0000-000000000424",
+ "id": "00000000-0000-0000-0000-000000000425",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000421",
+ "id": "00000000-0000-0000-0000-000000000422",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000422",
+ "id": "00000000-0000-0000-0000-000000000423",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000417",
+ "id": "00000000-0000-0000-0000-000000000418",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000420",
+ "id": "00000000-0000-0000-0000-000000000421",
},
},
- "id": "00000000-0000-0000-0000-000000000436",
+ "id": "00000000-0000-0000-0000-000000000437",
"views": {
"allMessageChannelMessageAssociationMessageFolders": {
- "id": "00000000-0000-0000-0000-000000000428",
+ "id": "00000000-0000-0000-0000-000000000429",
"viewFieldGroups": {},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000427",
+ "id": "00000000-0000-0000-0000-000000000428",
},
"messageChannelMessageAssociation": {
- "id": "00000000-0000-0000-0000-000000000425",
+ "id": "00000000-0000-0000-0000-000000000426",
},
"messageFolderId": {
- "id": "00000000-0000-0000-0000-000000000426",
+ "id": "00000000-0000-0000-0000-000000000427",
},
},
"viewGroups": {},
},
"messageChannelMessageAssociationMessageFolderRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000435",
+ "id": "00000000-0000-0000-0000-000000000436",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000433",
+ "id": "00000000-0000-0000-0000-000000000434",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000434",
+ "id": "00000000-0000-0000-0000-000000000435",
},
},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000431",
+ "id": "00000000-0000-0000-0000-000000000432",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000432",
+ "id": "00000000-0000-0000-0000-000000000433",
},
"messageChannelMessageAssociation": {
- "id": "00000000-0000-0000-0000-000000000429",
+ "id": "00000000-0000-0000-0000-000000000430",
},
"messageFolderId": {
- "id": "00000000-0000-0000-0000-000000000430",
+ "id": "00000000-0000-0000-0000-000000000431",
},
},
"viewGroups": {},
@@ -1790,65 +1826,65 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"messageList": {
"fields": {
"campaigns": {
- "id": "00000000-0000-0000-0000-000000000359",
+ "id": "00000000-0000-0000-0000-000000000360",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000349",
+ "id": "00000000-0000-0000-0000-000000000350",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000352",
+ "id": "00000000-0000-0000-0000-000000000353",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000351",
+ "id": "00000000-0000-0000-0000-000000000352",
},
"description": {
- "id": "00000000-0000-0000-0000-000000000357",
+ "id": "00000000-0000-0000-0000-000000000358",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000348",
+ "id": "00000000-0000-0000-0000-000000000349",
},
"members": {
- "id": "00000000-0000-0000-0000-000000000358",
+ "id": "00000000-0000-0000-0000-000000000359",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000356",
+ "id": "00000000-0000-0000-0000-000000000357",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000354",
+ "id": "00000000-0000-0000-0000-000000000355",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000355",
+ "id": "00000000-0000-0000-0000-000000000356",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000360",
+ "id": "00000000-0000-0000-0000-000000000361",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000350",
+ "id": "00000000-0000-0000-0000-000000000351",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000353",
+ "id": "00000000-0000-0000-0000-000000000354",
},
},
- "id": "00000000-0000-0000-0000-000000000367",
+ "id": "00000000-0000-0000-0000-000000000368",
"views": {
"allMessageLists": {
- "id": "00000000-0000-0000-0000-000000000366",
+ "id": "00000000-0000-0000-0000-000000000367",
"viewFieldGroups": {},
"viewFields": {
"campaigns": {
- "id": "00000000-0000-0000-0000-000000000364",
+ "id": "00000000-0000-0000-0000-000000000365",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000365",
+ "id": "00000000-0000-0000-0000-000000000366",
},
"description": {
- "id": "00000000-0000-0000-0000-000000000362",
+ "id": "00000000-0000-0000-0000-000000000363",
},
"members": {
- "id": "00000000-0000-0000-0000-000000000363",
+ "id": "00000000-0000-0000-0000-000000000364",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000361",
+ "id": "00000000-0000-0000-0000-000000000362",
},
},
"viewGroups": {},
@@ -1858,53 +1894,53 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"messageListMember": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000369",
+ "id": "00000000-0000-0000-0000-000000000370",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000372",
+ "id": "00000000-0000-0000-0000-000000000373",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000371",
+ "id": "00000000-0000-0000-0000-000000000372",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000368",
+ "id": "00000000-0000-0000-0000-000000000369",
},
"list": {
- "id": "00000000-0000-0000-0000-000000000377",
+ "id": "00000000-0000-0000-0000-000000000378",
},
"person": {
- "id": "00000000-0000-0000-0000-000000000376",
+ "id": "00000000-0000-0000-0000-000000000377",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000374",
+ "id": "00000000-0000-0000-0000-000000000375",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000375",
+ "id": "00000000-0000-0000-0000-000000000376",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000370",
+ "id": "00000000-0000-0000-0000-000000000371",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000373",
+ "id": "00000000-0000-0000-0000-000000000374",
},
},
- "id": "00000000-0000-0000-0000-000000000383",
+ "id": "00000000-0000-0000-0000-000000000384",
"views": {
"allMessageListMembers": {
- "id": "00000000-0000-0000-0000-000000000382",
+ "id": "00000000-0000-0000-0000-000000000383",
"viewFieldGroups": {},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000381",
+ "id": "00000000-0000-0000-0000-000000000382",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000378",
+ "id": "00000000-0000-0000-0000-000000000379",
},
"list": {
- "id": "00000000-0000-0000-0000-000000000380",
+ "id": "00000000-0000-0000-0000-000000000381",
},
"person": {
- "id": "00000000-0000-0000-0000-000000000379",
+ "id": "00000000-0000-0000-0000-000000000380",
},
},
"viewGroups": {},
@@ -1914,112 +1950,112 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"messageParticipant": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000438",
+ "id": "00000000-0000-0000-0000-000000000439",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000441",
+ "id": "00000000-0000-0000-0000-000000000442",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000440",
+ "id": "00000000-0000-0000-0000-000000000441",
},
"displayName": {
- "id": "00000000-0000-0000-0000-000000000448",
+ "id": "00000000-0000-0000-0000-000000000449",
},
"handle": {
- "id": "00000000-0000-0000-0000-000000000447",
+ "id": "00000000-0000-0000-0000-000000000448",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000437",
+ "id": "00000000-0000-0000-0000-000000000438",
},
"message": {
- "id": "00000000-0000-0000-0000-000000000445",
+ "id": "00000000-0000-0000-0000-000000000446",
},
"messageCampaign": {
- "id": "00000000-0000-0000-0000-000000000451",
+ "id": "00000000-0000-0000-0000-000000000452",
},
"person": {
- "id": "00000000-0000-0000-0000-000000000449",
+ "id": "00000000-0000-0000-0000-000000000450",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000443",
+ "id": "00000000-0000-0000-0000-000000000444",
},
"role": {
- "id": "00000000-0000-0000-0000-000000000446",
+ "id": "00000000-0000-0000-0000-000000000447",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000444",
+ "id": "00000000-0000-0000-0000-000000000445",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000439",
+ "id": "00000000-0000-0000-0000-000000000440",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000442",
+ "id": "00000000-0000-0000-0000-000000000443",
},
"workspaceMember": {
- "id": "00000000-0000-0000-0000-000000000450",
+ "id": "00000000-0000-0000-0000-000000000451",
},
},
- "id": "00000000-0000-0000-0000-000000000470",
+ "id": "00000000-0000-0000-0000-000000000471",
"views": {
"allMessageParticipants": {
- "id": "00000000-0000-0000-0000-000000000459",
+ "id": "00000000-0000-0000-0000-000000000460",
"viewFieldGroups": {},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000458",
+ "id": "00000000-0000-0000-0000-000000000459",
},
"displayName": {
- "id": "00000000-0000-0000-0000-000000000455",
+ "id": "00000000-0000-0000-0000-000000000456",
},
"handle": {
- "id": "00000000-0000-0000-0000-000000000454",
+ "id": "00000000-0000-0000-0000-000000000455",
},
"message": {
- "id": "00000000-0000-0000-0000-000000000452",
+ "id": "00000000-0000-0000-0000-000000000453",
},
"person": {
- "id": "00000000-0000-0000-0000-000000000456",
+ "id": "00000000-0000-0000-0000-000000000457",
},
"role": {
- "id": "00000000-0000-0000-0000-000000000453",
+ "id": "00000000-0000-0000-0000-000000000454",
},
"workspaceMember": {
- "id": "00000000-0000-0000-0000-000000000457",
+ "id": "00000000-0000-0000-0000-000000000458",
},
},
"viewGroups": {},
},
"messageParticipantRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000469",
+ "id": "00000000-0000-0000-0000-000000000470",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000467",
+ "id": "00000000-0000-0000-0000-000000000468",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000468",
+ "id": "00000000-0000-0000-0000-000000000469",
},
},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000465",
+ "id": "00000000-0000-0000-0000-000000000466",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000466",
+ "id": "00000000-0000-0000-0000-000000000467",
},
"displayName": {
- "id": "00000000-0000-0000-0000-000000000462",
+ "id": "00000000-0000-0000-0000-000000000463",
},
"message": {
- "id": "00000000-0000-0000-0000-000000000460",
+ "id": "00000000-0000-0000-0000-000000000461",
},
"person": {
- "id": "00000000-0000-0000-0000-000000000463",
+ "id": "00000000-0000-0000-0000-000000000464",
},
"role": {
- "id": "00000000-0000-0000-0000-000000000461",
+ "id": "00000000-0000-0000-0000-000000000462",
},
"workspaceMember": {
- "id": "00000000-0000-0000-0000-000000000464",
+ "id": "00000000-0000-0000-0000-000000000465",
},
},
"viewGroups": {},
@@ -2029,92 +2065,92 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"messageSuppression": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000001099",
+ "id": "00000000-0000-0000-0000-000000001112",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000001101",
+ "id": "00000000-0000-0000-0000-000000001114",
},
"emailAddress": {
- "id": "00000000-0000-0000-0000-000000001102",
+ "id": "00000000-0000-0000-0000-000000001115",
},
"id": {
- "id": "00000000-0000-0000-0000-000000001098",
+ "id": "00000000-0000-0000-0000-000000001111",
},
"providerEventId": {
- "id": "00000000-0000-0000-0000-000000001105",
+ "id": "00000000-0000-0000-0000-000000001118",
},
"reason": {
- "id": "00000000-0000-0000-0000-000000001103",
+ "id": "00000000-0000-0000-0000-000000001116",
},
"source": {
- "id": "00000000-0000-0000-0000-000000001104",
+ "id": "00000000-0000-0000-0000-000000001117",
},
"unsubscribeTopicId": {
- "id": "00000000-0000-0000-0000-000000001106",
+ "id": "00000000-0000-0000-0000-000000001119",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000001100",
+ "id": "00000000-0000-0000-0000-000000001113",
},
},
- "id": "00000000-0000-0000-0000-000000001107",
+ "id": "00000000-0000-0000-0000-000000001120",
"views": undefined,
},
"messageThread": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000472",
+ "id": "00000000-0000-0000-0000-000000000473",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000475",
+ "id": "00000000-0000-0000-0000-000000000476",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000474",
+ "id": "00000000-0000-0000-0000-000000000475",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000471",
+ "id": "00000000-0000-0000-0000-000000000472",
},
"messageChannelMessageAssociations": {
- "id": "00000000-0000-0000-0000-000000000480",
+ "id": "00000000-0000-0000-0000-000000000481",
},
"messageThreadTargets": {
- "id": "00000000-0000-0000-0000-000000000482",
+ "id": "00000000-0000-0000-0000-000000000483",
},
"messages": {
- "id": "00000000-0000-0000-0000-000000000479",
+ "id": "00000000-0000-0000-0000-000000000480",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000477",
+ "id": "00000000-0000-0000-0000-000000000478",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000478",
+ "id": "00000000-0000-0000-0000-000000000479",
},
"subject": {
- "id": "00000000-0000-0000-0000-000000000481",
+ "id": "00000000-0000-0000-0000-000000000482",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000473",
+ "id": "00000000-0000-0000-0000-000000000474",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000476",
+ "id": "00000000-0000-0000-0000-000000000477",
},
},
- "id": "00000000-0000-0000-0000-000000000488",
+ "id": "00000000-0000-0000-0000-000000000489",
"views": {
"allMessageThreads": {
- "id": "00000000-0000-0000-0000-000000000487",
+ "id": "00000000-0000-0000-0000-000000000488",
"viewFieldGroups": {},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000486",
+ "id": "00000000-0000-0000-0000-000000000487",
},
"messages": {
- "id": "00000000-0000-0000-0000-000000000484",
+ "id": "00000000-0000-0000-0000-000000000485",
},
"subject": {
- "id": "00000000-0000-0000-0000-000000000483",
+ "id": "00000000-0000-0000-0000-000000000484",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000485",
+ "id": "00000000-0000-0000-0000-000000000486",
},
},
"viewGroups": {},
@@ -2124,133 +2160,133 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"messageThreadTarget": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000490",
+ "id": "00000000-0000-0000-0000-000000000491",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000493",
+ "id": "00000000-0000-0000-0000-000000000494",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000492",
+ "id": "00000000-0000-0000-0000-000000000493",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000489",
+ "id": "00000000-0000-0000-0000-000000000490",
},
"isAutomaticallyAssigned": {
- "id": "00000000-0000-0000-0000-000000000498",
+ "id": "00000000-0000-0000-0000-000000000499",
},
"isManuallyAssigned": {
- "id": "00000000-0000-0000-0000-000000000499",
+ "id": "00000000-0000-0000-0000-000000000500",
},
"messageThread": {
- "id": "00000000-0000-0000-0000-000000000497",
+ "id": "00000000-0000-0000-0000-000000000498",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000495",
+ "id": "00000000-0000-0000-0000-000000000496",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000496",
+ "id": "00000000-0000-0000-0000-000000000497",
},
"targetCompany": {
- "id": "00000000-0000-0000-0000-000000000501",
+ "id": "00000000-0000-0000-0000-000000000502",
},
"targetOpportunity": {
- "id": "00000000-0000-0000-0000-000000000502",
+ "id": "00000000-0000-0000-0000-000000000503",
},
"targetPerson": {
- "id": "00000000-0000-0000-0000-000000000500",
+ "id": "00000000-0000-0000-0000-000000000501",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000491",
+ "id": "00000000-0000-0000-0000-000000000492",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000494",
+ "id": "00000000-0000-0000-0000-000000000495",
},
},
- "id": "00000000-0000-0000-0000-000000000503",
+ "id": "00000000-0000-0000-0000-000000000504",
"views": {},
},
"note": {
"fields": {
"attachments": {
- "id": "00000000-0000-0000-0000-000000000551",
+ "id": "00000000-0000-0000-0000-000000000552",
},
"bodyV2": {
- "id": "00000000-0000-0000-0000-000000000549",
+ "id": "00000000-0000-0000-0000-000000000550",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000541",
+ "id": "00000000-0000-0000-0000-000000000542",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000544",
+ "id": "00000000-0000-0000-0000-000000000545",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000543",
+ "id": "00000000-0000-0000-0000-000000000544",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000540",
+ "id": "00000000-0000-0000-0000-000000000541",
},
"noteTargets": {
- "id": "00000000-0000-0000-0000-000000000550",
+ "id": "00000000-0000-0000-0000-000000000551",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000546",
+ "id": "00000000-0000-0000-0000-000000000547",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000547",
+ "id": "00000000-0000-0000-0000-000000000548",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000552",
+ "id": "00000000-0000-0000-0000-000000000553",
},
"title": {
- "id": "00000000-0000-0000-0000-000000000548",
+ "id": "00000000-0000-0000-0000-000000000549",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000542",
+ "id": "00000000-0000-0000-0000-000000000543",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000545",
+ "id": "00000000-0000-0000-0000-000000000546",
},
},
- "id": "00000000-0000-0000-0000-000000000564",
+ "id": "00000000-0000-0000-0000-000000000565",
"views": {
"allNotes": {
- "id": "00000000-0000-0000-0000-000000000558",
+ "id": "00000000-0000-0000-0000-000000000559",
"viewFieldGroups": {},
"viewFields": {
"bodyV2": {
- "id": "00000000-0000-0000-0000-000000000555",
+ "id": "00000000-0000-0000-0000-000000000556",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000557",
+ "id": "00000000-0000-0000-0000-000000000558",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000556",
+ "id": "00000000-0000-0000-0000-000000000557",
},
"noteTargets": {
- "id": "00000000-0000-0000-0000-000000000554",
+ "id": "00000000-0000-0000-0000-000000000555",
},
"title": {
- "id": "00000000-0000-0000-0000-000000000553",
+ "id": "00000000-0000-0000-0000-000000000554",
},
},
"viewGroups": {},
},
"noteRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000563",
+ "id": "00000000-0000-0000-0000-000000000564",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000562",
+ "id": "00000000-0000-0000-0000-000000000563",
},
},
"viewFields": {
"attachments": {
- "id": "00000000-0000-0000-0000-000000000560",
+ "id": "00000000-0000-0000-0000-000000000561",
},
"noteTargets": {
- "id": "00000000-0000-0000-0000-000000000559",
+ "id": "00000000-0000-0000-0000-000000000560",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000561",
+ "id": "00000000-0000-0000-0000-000000000562",
},
},
"viewGroups": {},
@@ -2260,62 +2296,62 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"noteTarget": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000566",
+ "id": "00000000-0000-0000-0000-000000000567",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000569",
+ "id": "00000000-0000-0000-0000-000000000570",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000568",
+ "id": "00000000-0000-0000-0000-000000000569",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000565",
+ "id": "00000000-0000-0000-0000-000000000566",
},
"note": {
- "id": "00000000-0000-0000-0000-000000000573",
+ "id": "00000000-0000-0000-0000-000000000574",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000571",
+ "id": "00000000-0000-0000-0000-000000000572",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000572",
+ "id": "00000000-0000-0000-0000-000000000573",
},
"targetCompany": {
- "id": "00000000-0000-0000-0000-000000000575",
+ "id": "00000000-0000-0000-0000-000000000576",
},
"targetOpportunity": {
- "id": "00000000-0000-0000-0000-000000000576",
+ "id": "00000000-0000-0000-0000-000000000577",
},
"targetPerson": {
- "id": "00000000-0000-0000-0000-000000000574",
+ "id": "00000000-0000-0000-0000-000000000575",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000567",
+ "id": "00000000-0000-0000-0000-000000000568",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000570",
+ "id": "00000000-0000-0000-0000-000000000571",
},
},
- "id": "00000000-0000-0000-0000-000000000583",
+ "id": "00000000-0000-0000-0000-000000000584",
"views": {
"allNoteTargets": {
- "id": "00000000-0000-0000-0000-000000000582",
+ "id": "00000000-0000-0000-0000-000000000583",
"viewFieldGroups": {},
"viewFields": {
"id": {
- "id": "00000000-0000-0000-0000-000000000577",
+ "id": "00000000-0000-0000-0000-000000000578",
},
"note": {
- "id": "00000000-0000-0000-0000-000000000578",
+ "id": "00000000-0000-0000-0000-000000000579",
},
"targetCompany": {
- "id": "00000000-0000-0000-0000-000000000580",
+ "id": "00000000-0000-0000-0000-000000000581",
},
"targetOpportunity": {
- "id": "00000000-0000-0000-0000-000000000581",
+ "id": "00000000-0000-0000-0000-000000000582",
},
"targetPerson": {
- "id": "00000000-0000-0000-0000-000000000579",
+ "id": "00000000-0000-0000-0000-000000000580",
},
},
"viewGroups": {},
@@ -2324,193 +2360,196 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
},
"opportunity": {
"fields": {
+ "agentChatThreadTargets": {
+ "id": "00000000-0000-0000-0000-000000000602",
+ },
"amount": {
- "id": "00000000-0000-0000-0000-000000000593",
+ "id": "00000000-0000-0000-0000-000000000594",
},
"attachments": {
- "id": "00000000-0000-0000-0000-000000000603",
+ "id": "00000000-0000-0000-0000-000000000605",
},
"calendarEventTargets": {
- "id": "00000000-0000-0000-0000-000000000601",
+ "id": "00000000-0000-0000-0000-000000000603",
},
"closeDate": {
- "id": "00000000-0000-0000-0000-000000000594",
+ "id": "00000000-0000-0000-0000-000000000595",
},
"company": {
- "id": "00000000-0000-0000-0000-000000000597",
+ "id": "00000000-0000-0000-0000-000000000598",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000585",
+ "id": "00000000-0000-0000-0000-000000000586",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000588",
+ "id": "00000000-0000-0000-0000-000000000589",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000587",
+ "id": "00000000-0000-0000-0000-000000000588",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000584",
+ "id": "00000000-0000-0000-0000-000000000585",
},
"messageThreadTargets": {
- "id": "00000000-0000-0000-0000-000000000602",
+ "id": "00000000-0000-0000-0000-000000000604",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000592",
+ "id": "00000000-0000-0000-0000-000000000593",
},
"noteTargets": {
- "id": "00000000-0000-0000-0000-000000000600",
+ "id": "00000000-0000-0000-0000-000000000601",
},
"owner": {
- "id": "00000000-0000-0000-0000-000000000598",
+ "id": "00000000-0000-0000-0000-000000000599",
},
"pointOfContact": {
- "id": "00000000-0000-0000-0000-000000000596",
+ "id": "00000000-0000-0000-0000-000000000597",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000590",
+ "id": "00000000-0000-0000-0000-000000000591",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000591",
+ "id": "00000000-0000-0000-0000-000000000592",
},
"stage": {
- "id": "00000000-0000-0000-0000-000000000595",
+ "id": "00000000-0000-0000-0000-000000000596",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000599",
+ "id": "00000000-0000-0000-0000-000000000600",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000604",
+ "id": "00000000-0000-0000-0000-000000000606",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000586",
+ "id": "00000000-0000-0000-0000-000000000587",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000589",
+ "id": "00000000-0000-0000-0000-000000000590",
},
},
- "id": "00000000-0000-0000-0000-000000000642",
+ "id": "00000000-0000-0000-0000-000000000644",
"views": {
"allOpportunities": {
- "id": "00000000-0000-0000-0000-000000000611",
+ "id": "00000000-0000-0000-0000-000000000613",
"viewFieldGroups": {},
"viewFields": {
"amount": {
- "id": "00000000-0000-0000-0000-000000000606",
+ "id": "00000000-0000-0000-0000-000000000608",
},
"closeDate": {
- "id": "00000000-0000-0000-0000-000000000608",
+ "id": "00000000-0000-0000-0000-000000000610",
},
"company": {
- "id": "00000000-0000-0000-0000-000000000609",
+ "id": "00000000-0000-0000-0000-000000000611",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000607",
+ "id": "00000000-0000-0000-0000-000000000609",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000605",
+ "id": "00000000-0000-0000-0000-000000000607",
},
"pointOfContact": {
- "id": "00000000-0000-0000-0000-000000000610",
+ "id": "00000000-0000-0000-0000-000000000612",
},
},
"viewGroups": {},
},
"byStage": {
- "id": "00000000-0000-0000-0000-000000000623",
+ "id": "00000000-0000-0000-0000-000000000625",
"viewFieldGroups": {},
"viewFields": {
"amount": {
- "id": "00000000-0000-0000-0000-000000000613",
+ "id": "00000000-0000-0000-0000-000000000615",
},
"closeDate": {
- "id": "00000000-0000-0000-0000-000000000615",
+ "id": "00000000-0000-0000-0000-000000000617",
},
"company": {
- "id": "00000000-0000-0000-0000-000000000616",
+ "id": "00000000-0000-0000-0000-000000000618",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000614",
+ "id": "00000000-0000-0000-0000-000000000616",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000612",
+ "id": "00000000-0000-0000-0000-000000000614",
},
"pointOfContact": {
- "id": "00000000-0000-0000-0000-000000000617",
+ "id": "00000000-0000-0000-0000-000000000619",
},
},
"viewGroups": {
"customer": {
- "id": "00000000-0000-0000-0000-000000000622",
+ "id": "00000000-0000-0000-0000-000000000624",
},
"meeting": {
- "id": "00000000-0000-0000-0000-000000000620",
+ "id": "00000000-0000-0000-0000-000000000622",
},
"new": {
- "id": "00000000-0000-0000-0000-000000000618",
+ "id": "00000000-0000-0000-0000-000000000620",
},
"proposal": {
- "id": "00000000-0000-0000-0000-000000000621",
+ "id": "00000000-0000-0000-0000-000000000623",
},
"screening": {
- "id": "00000000-0000-0000-0000-000000000619",
+ "id": "00000000-0000-0000-0000-000000000621",
},
},
},
"opportunityRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000641",
+ "id": "00000000-0000-0000-0000-000000000643",
"viewFieldGroups": {
"deal": {
- "id": "00000000-0000-0000-0000-000000000638",
+ "id": "00000000-0000-0000-0000-000000000640",
},
"relations": {
- "id": "00000000-0000-0000-0000-000000000639",
+ "id": "00000000-0000-0000-0000-000000000641",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000640",
+ "id": "00000000-0000-0000-0000-000000000642",
},
},
"viewFields": {
"amount": {
- "id": "00000000-0000-0000-0000-000000000624",
+ "id": "00000000-0000-0000-0000-000000000626",
},
"attachments": {
- "id": "00000000-0000-0000-0000-000000000636",
+ "id": "00000000-0000-0000-0000-000000000638",
},
"closeDate": {
- "id": "00000000-0000-0000-0000-000000000625",
+ "id": "00000000-0000-0000-0000-000000000627",
},
"company": {
- "id": "00000000-0000-0000-0000-000000000627",
+ "id": "00000000-0000-0000-0000-000000000629",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000630",
+ "id": "00000000-0000-0000-0000-000000000632",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000631",
+ "id": "00000000-0000-0000-0000-000000000633",
},
"noteTargets": {
- "id": "00000000-0000-0000-0000-000000000635",
+ "id": "00000000-0000-0000-0000-000000000637",
},
"owner": {
- "id": "00000000-0000-0000-0000-000000000629",
+ "id": "00000000-0000-0000-0000-000000000631",
},
"pointOfContact": {
- "id": "00000000-0000-0000-0000-000000000628",
+ "id": "00000000-0000-0000-0000-000000000630",
},
"stage": {
- "id": "00000000-0000-0000-0000-000000000626",
+ "id": "00000000-0000-0000-0000-000000000628",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000634",
+ "id": "00000000-0000-0000-0000-000000000636",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000637",
+ "id": "00000000-0000-0000-0000-000000000639",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000632",
+ "id": "00000000-0000-0000-0000-000000000634",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000633",
+ "id": "00000000-0000-0000-0000-000000000635",
},
},
"viewGroups": {},
@@ -2519,204 +2558,207 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
},
"person": {
"fields": {
- "attachments": {
+ "agentChatThreadTargets": {
"id": "00000000-0000-0000-0000-000000000664",
},
+ "attachments": {
+ "id": "00000000-0000-0000-0000-000000000667",
+ },
"avatarFile": {
- "id": "00000000-0000-0000-0000-000000000657",
+ "id": "00000000-0000-0000-0000-000000000659",
},
"avatarUrl": {
- "id": "00000000-0000-0000-0000-000000000656",
+ "id": "00000000-0000-0000-0000-000000000658",
},
"calendarEventParticipants": {
- "id": "00000000-0000-0000-0000-000000000666",
+ "id": "00000000-0000-0000-0000-000000000669",
},
"calendarEventTargets": {
- "id": "00000000-0000-0000-0000-000000000662",
+ "id": "00000000-0000-0000-0000-000000000665",
},
"company": {
- "id": "00000000-0000-0000-0000-000000000658",
+ "id": "00000000-0000-0000-0000-000000000660",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000644",
+ "id": "00000000-0000-0000-0000-000000000646",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000647",
+ "id": "00000000-0000-0000-0000-000000000649",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000646",
+ "id": "00000000-0000-0000-0000-000000000648",
},
"emails": {
- "id": "00000000-0000-0000-0000-000000000652",
+ "id": "00000000-0000-0000-0000-000000000654",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000643",
+ "id": "00000000-0000-0000-0000-000000000645",
},
"jobTitle": {
- "id": "00000000-0000-0000-0000-000000000654",
+ "id": "00000000-0000-0000-0000-000000000656",
},
"linkedinLink": {
- "id": "00000000-0000-0000-0000-000000000653",
+ "id": "00000000-0000-0000-0000-000000000655",
},
"listMemberships": {
- "id": "00000000-0000-0000-0000-000000000668",
+ "id": "00000000-0000-0000-0000-000000000671",
},
"messageParticipants": {
- "id": "00000000-0000-0000-0000-000000000665",
+ "id": "00000000-0000-0000-0000-000000000668",
},
"messageThreadTargets": {
- "id": "00000000-0000-0000-0000-000000000663",
+ "id": "00000000-0000-0000-0000-000000000666",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000651",
+ "id": "00000000-0000-0000-0000-000000000653",
},
"noteTargets": {
- "id": "00000000-0000-0000-0000-000000000661",
+ "id": "00000000-0000-0000-0000-000000000663",
},
"phones": {
- "id": "00000000-0000-0000-0000-000000000655",
+ "id": "00000000-0000-0000-0000-000000000657",
},
"pointOfContactForOpportunities": {
- "id": "00000000-0000-0000-0000-000000000659",
+ "id": "00000000-0000-0000-0000-000000000661",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000649",
+ "id": "00000000-0000-0000-0000-000000000651",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000650",
+ "id": "00000000-0000-0000-0000-000000000652",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000660",
+ "id": "00000000-0000-0000-0000-000000000662",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000667",
+ "id": "00000000-0000-0000-0000-000000000670",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000645",
+ "id": "00000000-0000-0000-0000-000000000647",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000648",
+ "id": "00000000-0000-0000-0000-000000000650",
},
},
- "id": "00000000-0000-0000-0000-000000000705",
+ "id": "00000000-0000-0000-0000-000000000708",
"views": {
"allPeople": {
- "id": "00000000-0000-0000-0000-000000000677",
+ "id": "00000000-0000-0000-0000-000000000680",
"viewFieldGroups": {},
"viewFields": {
"company": {
- "id": "00000000-0000-0000-0000-000000000672",
+ "id": "00000000-0000-0000-0000-000000000675",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000674",
+ "id": "00000000-0000-0000-0000-000000000677",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000671",
+ "id": "00000000-0000-0000-0000-000000000674",
},
"emails": {
- "id": "00000000-0000-0000-0000-000000000670",
+ "id": "00000000-0000-0000-0000-000000000673",
},
"jobTitle": {
- "id": "00000000-0000-0000-0000-000000000675",
+ "id": "00000000-0000-0000-0000-000000000678",
},
"linkedinLink": {
- "id": "00000000-0000-0000-0000-000000000676",
+ "id": "00000000-0000-0000-0000-000000000679",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000669",
+ "id": "00000000-0000-0000-0000-000000000672",
},
"phones": {
- "id": "00000000-0000-0000-0000-000000000673",
+ "id": "00000000-0000-0000-0000-000000000676",
},
},
"viewGroups": {},
},
"messageListRecordPageMembers": {
- "id": "00000000-0000-0000-0000-000000000704",
+ "id": "00000000-0000-0000-0000-000000000707",
"viewFieldGroups": {},
"viewFields": {
"company": {
- "id": "00000000-0000-0000-0000-000000000703",
+ "id": "00000000-0000-0000-0000-000000000706",
},
"emails": {
- "id": "00000000-0000-0000-0000-000000000702",
+ "id": "00000000-0000-0000-0000-000000000705",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000701",
+ "id": "00000000-0000-0000-0000-000000000704",
},
},
"viewGroups": {},
},
"personRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000700",
+ "id": "00000000-0000-0000-0000-000000000703",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000696",
+ "id": "00000000-0000-0000-0000-000000000699",
},
"social": {
- "id": "00000000-0000-0000-0000-000000000698",
+ "id": "00000000-0000-0000-0000-000000000701",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000699",
+ "id": "00000000-0000-0000-0000-000000000702",
},
"work": {
- "id": "00000000-0000-0000-0000-000000000697",
+ "id": "00000000-0000-0000-0000-000000000700",
},
},
"viewFields": {
"attachments": {
- "id": "00000000-0000-0000-0000-000000000692",
+ "id": "00000000-0000-0000-0000-000000000695",
},
"avatarFile": {
- "id": "00000000-0000-0000-0000-000000000688",
+ "id": "00000000-0000-0000-0000-000000000691",
},
"avatarUrl": {
- "id": "00000000-0000-0000-0000-000000000683",
+ "id": "00000000-0000-0000-0000-000000000686",
},
"calendarEventParticipants": {
- "id": "00000000-0000-0000-0000-000000000694",
+ "id": "00000000-0000-0000-0000-000000000697",
},
"company": {
- "id": "00000000-0000-0000-0000-000000000680",
+ "id": "00000000-0000-0000-0000-000000000683",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000684",
+ "id": "00000000-0000-0000-0000-000000000687",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000685",
+ "id": "00000000-0000-0000-0000-000000000688",
},
"emails": {
- "id": "00000000-0000-0000-0000-000000000678",
+ "id": "00000000-0000-0000-0000-000000000681",
},
"jobTitle": {
- "id": "00000000-0000-0000-0000-000000000681",
+ "id": "00000000-0000-0000-0000-000000000684",
},
"linkedinLink": {
- "id": "00000000-0000-0000-0000-000000000682",
+ "id": "00000000-0000-0000-0000-000000000685",
},
"messageParticipants": {
- "id": "00000000-0000-0000-0000-000000000693",
+ "id": "00000000-0000-0000-0000-000000000696",
},
"noteTargets": {
- "id": "00000000-0000-0000-0000-000000000691",
+ "id": "00000000-0000-0000-0000-000000000694",
},
"phones": {
- "id": "00000000-0000-0000-0000-000000000679",
+ "id": "00000000-0000-0000-0000-000000000682",
},
"pointOfContactForOpportunities": {
- "id": "00000000-0000-0000-0000-000000000689",
+ "id": "00000000-0000-0000-0000-000000000692",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000690",
+ "id": "00000000-0000-0000-0000-000000000693",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000695",
+ "id": "00000000-0000-0000-0000-000000000698",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000686",
+ "id": "00000000-0000-0000-0000-000000000689",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000687",
+ "id": "00000000-0000-0000-0000-000000000690",
},
},
"viewGroups": {},
@@ -2726,236 +2768,236 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"recordShare": {
"fields": {
"accessLevel": {
- "id": "00000000-0000-0000-0000-000000000718",
+ "id": "00000000-0000-0000-0000-000000000721",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000707",
+ "id": "00000000-0000-0000-0000-000000000710",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000710",
+ "id": "00000000-0000-0000-0000-000000000713",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000709",
+ "id": "00000000-0000-0000-0000-000000000712",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000706",
+ "id": "00000000-0000-0000-0000-000000000709",
},
"objectMetadataId": {
- "id": "00000000-0000-0000-0000-000000000715",
+ "id": "00000000-0000-0000-0000-000000000718",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000712",
+ "id": "00000000-0000-0000-0000-000000000715",
},
"principalId": {
- "id": "00000000-0000-0000-0000-000000000716",
+ "id": "00000000-0000-0000-0000-000000000719",
},
"principalType": {
- "id": "00000000-0000-0000-0000-000000000717",
+ "id": "00000000-0000-0000-0000-000000000720",
},
"recordId": {
- "id": "00000000-0000-0000-0000-000000000714",
+ "id": "00000000-0000-0000-0000-000000000717",
},
"rowCause": {
- "id": "00000000-0000-0000-0000-000000000719",
+ "id": "00000000-0000-0000-0000-000000000722",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000713",
+ "id": "00000000-0000-0000-0000-000000000716",
},
"sourceId": {
- "id": "00000000-0000-0000-0000-000000000720",
+ "id": "00000000-0000-0000-0000-000000000723",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000708",
+ "id": "00000000-0000-0000-0000-000000000711",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000711",
+ "id": "00000000-0000-0000-0000-000000000714",
},
},
- "id": "00000000-0000-0000-0000-000000000721",
+ "id": "00000000-0000-0000-0000-000000000724",
"views": {},
},
"task": {
"fields": {
"assignee": {
- "id": "00000000-0000-0000-0000-000000000736",
+ "id": "00000000-0000-0000-0000-000000000739",
},
"attachments": {
- "id": "00000000-0000-0000-0000-000000000735",
+ "id": "00000000-0000-0000-0000-000000000738",
},
"bodyV2": {
- "id": "00000000-0000-0000-0000-000000000731",
+ "id": "00000000-0000-0000-0000-000000000734",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000723",
+ "id": "00000000-0000-0000-0000-000000000726",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000726",
+ "id": "00000000-0000-0000-0000-000000000729",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000725",
+ "id": "00000000-0000-0000-0000-000000000728",
},
"dueAt": {
- "id": "00000000-0000-0000-0000-000000000732",
+ "id": "00000000-0000-0000-0000-000000000735",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000722",
+ "id": "00000000-0000-0000-0000-000000000725",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000728",
+ "id": "00000000-0000-0000-0000-000000000731",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000729",
+ "id": "00000000-0000-0000-0000-000000000732",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000733",
+ "id": "00000000-0000-0000-0000-000000000736",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000734",
+ "id": "00000000-0000-0000-0000-000000000737",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000737",
+ "id": "00000000-0000-0000-0000-000000000740",
},
"title": {
- "id": "00000000-0000-0000-0000-000000000730",
+ "id": "00000000-0000-0000-0000-000000000733",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000724",
+ "id": "00000000-0000-0000-0000-000000000727",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000727",
+ "id": "00000000-0000-0000-0000-000000000730",
},
},
- "id": "00000000-0000-0000-0000-000000000776",
+ "id": "00000000-0000-0000-0000-000000000779",
"views": {
"allTasks": {
- "id": "00000000-0000-0000-0000-000000000746",
+ "id": "00000000-0000-0000-0000-000000000749",
"viewFieldGroups": {},
"viewFields": {
"assignee": {
- "id": "00000000-0000-0000-0000-000000000743",
+ "id": "00000000-0000-0000-0000-000000000746",
},
"bodyV2": {
- "id": "00000000-0000-0000-0000-000000000744",
+ "id": "00000000-0000-0000-0000-000000000747",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000745",
+ "id": "00000000-0000-0000-0000-000000000748",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000741",
+ "id": "00000000-0000-0000-0000-000000000744",
},
"dueAt": {
- "id": "00000000-0000-0000-0000-000000000742",
+ "id": "00000000-0000-0000-0000-000000000745",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000739",
+ "id": "00000000-0000-0000-0000-000000000742",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000740",
+ "id": "00000000-0000-0000-0000-000000000743",
},
"title": {
- "id": "00000000-0000-0000-0000-000000000738",
+ "id": "00000000-0000-0000-0000-000000000741",
},
},
"viewGroups": {},
},
"assignedToMe": {
- "id": "00000000-0000-0000-0000-000000000758",
+ "id": "00000000-0000-0000-0000-000000000761",
"viewFieldGroups": {},
"viewFields": {
"assignee": {
- "id": "00000000-0000-0000-0000-000000000751",
+ "id": "00000000-0000-0000-0000-000000000754",
},
"bodyV2": {
- "id": "00000000-0000-0000-0000-000000000752",
+ "id": "00000000-0000-0000-0000-000000000755",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000753",
+ "id": "00000000-0000-0000-0000-000000000756",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000749",
+ "id": "00000000-0000-0000-0000-000000000752",
},
"dueAt": {
- "id": "00000000-0000-0000-0000-000000000750",
+ "id": "00000000-0000-0000-0000-000000000753",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000748",
+ "id": "00000000-0000-0000-0000-000000000751",
},
"title": {
- "id": "00000000-0000-0000-0000-000000000747",
+ "id": "00000000-0000-0000-0000-000000000750",
},
},
"viewGroups": {
"done": {
- "id": "00000000-0000-0000-0000-000000000756",
+ "id": "00000000-0000-0000-0000-000000000759",
},
"empty": {
- "id": "00000000-0000-0000-0000-000000000757",
+ "id": "00000000-0000-0000-0000-000000000760",
},
"inProgress": {
- "id": "00000000-0000-0000-0000-000000000755",
+ "id": "00000000-0000-0000-0000-000000000758",
},
"todo": {
- "id": "00000000-0000-0000-0000-000000000754",
+ "id": "00000000-0000-0000-0000-000000000757",
},
},
},
"byStatus": {
- "id": "00000000-0000-0000-0000-000000000767",
+ "id": "00000000-0000-0000-0000-000000000770",
"viewFieldGroups": {},
"viewFields": {
"assignee": {
- "id": "00000000-0000-0000-0000-000000000762",
+ "id": "00000000-0000-0000-0000-000000000765",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000763",
+ "id": "00000000-0000-0000-0000-000000000766",
},
"dueAt": {
- "id": "00000000-0000-0000-0000-000000000761",
+ "id": "00000000-0000-0000-0000-000000000764",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000760",
+ "id": "00000000-0000-0000-0000-000000000763",
},
"title": {
- "id": "00000000-0000-0000-0000-000000000759",
+ "id": "00000000-0000-0000-0000-000000000762",
},
},
"viewGroups": {
"done": {
- "id": "00000000-0000-0000-0000-000000000766",
+ "id": "00000000-0000-0000-0000-000000000769",
},
"inProgress": {
- "id": "00000000-0000-0000-0000-000000000765",
+ "id": "00000000-0000-0000-0000-000000000768",
},
"todo": {
- "id": "00000000-0000-0000-0000-000000000764",
+ "id": "00000000-0000-0000-0000-000000000767",
},
},
},
"taskRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000775",
+ "id": "00000000-0000-0000-0000-000000000778",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000774",
+ "id": "00000000-0000-0000-0000-000000000777",
},
},
"viewFields": {
"assignee": {
- "id": "00000000-0000-0000-0000-000000000770",
+ "id": "00000000-0000-0000-0000-000000000773",
},
"attachments": {
- "id": "00000000-0000-0000-0000-000000000772",
+ "id": "00000000-0000-0000-0000-000000000775",
},
"dueAt": {
- "id": "00000000-0000-0000-0000-000000000768",
+ "id": "00000000-0000-0000-0000-000000000771",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000769",
+ "id": "00000000-0000-0000-0000-000000000772",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000771",
+ "id": "00000000-0000-0000-0000-000000000774",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000773",
+ "id": "00000000-0000-0000-0000-000000000776",
},
},
"viewGroups": {},
@@ -2965,62 +3007,62 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"taskTarget": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000778",
+ "id": "00000000-0000-0000-0000-000000000781",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000781",
+ "id": "00000000-0000-0000-0000-000000000784",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000780",
+ "id": "00000000-0000-0000-0000-000000000783",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000777",
+ "id": "00000000-0000-0000-0000-000000000780",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000783",
+ "id": "00000000-0000-0000-0000-000000000786",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000784",
+ "id": "00000000-0000-0000-0000-000000000787",
},
"targetCompany": {
- "id": "00000000-0000-0000-0000-000000000787",
+ "id": "00000000-0000-0000-0000-000000000790",
},
"targetOpportunity": {
- "id": "00000000-0000-0000-0000-000000000788",
+ "id": "00000000-0000-0000-0000-000000000791",
},
"targetPerson": {
- "id": "00000000-0000-0000-0000-000000000786",
+ "id": "00000000-0000-0000-0000-000000000789",
},
"task": {
- "id": "00000000-0000-0000-0000-000000000785",
+ "id": "00000000-0000-0000-0000-000000000788",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000779",
+ "id": "00000000-0000-0000-0000-000000000782",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000782",
+ "id": "00000000-0000-0000-0000-000000000785",
},
},
- "id": "00000000-0000-0000-0000-000000000795",
+ "id": "00000000-0000-0000-0000-000000000798",
"views": {
"allTaskTargets": {
- "id": "00000000-0000-0000-0000-000000000794",
+ "id": "00000000-0000-0000-0000-000000000797",
"viewFieldGroups": {},
"viewFields": {
"id": {
- "id": "00000000-0000-0000-0000-000000000789",
+ "id": "00000000-0000-0000-0000-000000000792",
},
"targetCompany": {
- "id": "00000000-0000-0000-0000-000000000792",
+ "id": "00000000-0000-0000-0000-000000000795",
},
"targetOpportunity": {
- "id": "00000000-0000-0000-0000-000000000793",
+ "id": "00000000-0000-0000-0000-000000000796",
},
"targetPerson": {
- "id": "00000000-0000-0000-0000-000000000791",
+ "id": "00000000-0000-0000-0000-000000000794",
},
"task": {
- "id": "00000000-0000-0000-0000-000000000790",
+ "id": "00000000-0000-0000-0000-000000000793",
},
},
"viewGroups": {},
@@ -3030,128 +3072,128 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"timelineActivity": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000797",
+ "id": "00000000-0000-0000-0000-000000000800",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000800",
+ "id": "00000000-0000-0000-0000-000000000803",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000799",
+ "id": "00000000-0000-0000-0000-000000000802",
},
"happensAt": {
- "id": "00000000-0000-0000-0000-000000000806",
+ "id": "00000000-0000-0000-0000-000000000809",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000796",
+ "id": "00000000-0000-0000-0000-000000000799",
},
"linkedObjectMetadataId": {
- "id": "00000000-0000-0000-0000-000000000822",
+ "id": "00000000-0000-0000-0000-000000000825",
},
"linkedRecordCachedName": {
- "id": "00000000-0000-0000-0000-000000000820",
+ "id": "00000000-0000-0000-0000-000000000823",
},
"linkedRecordId": {
- "id": "00000000-0000-0000-0000-000000000821",
+ "id": "00000000-0000-0000-0000-000000000824",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000802",
+ "id": "00000000-0000-0000-0000-000000000805",
},
"properties": {
- "id": "00000000-0000-0000-0000-000000000807",
+ "id": "00000000-0000-0000-0000-000000000810",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000803",
+ "id": "00000000-0000-0000-0000-000000000806",
},
"targetCompany": {
- "id": "00000000-0000-0000-0000-000000000810",
+ "id": "00000000-0000-0000-0000-000000000813",
},
"targetDashboard": {
- "id": "00000000-0000-0000-0000-000000000817",
+ "id": "00000000-0000-0000-0000-000000000820",
},
"targetMessageCampaign": {
- "id": "00000000-0000-0000-0000-000000000819",
+ "id": "00000000-0000-0000-0000-000000000822",
},
"targetMessageList": {
- "id": "00000000-0000-0000-0000-000000000818",
+ "id": "00000000-0000-0000-0000-000000000821",
},
"targetNote": {
- "id": "00000000-0000-0000-0000-000000000813",
+ "id": "00000000-0000-0000-0000-000000000816",
},
"targetOpportunity": {
- "id": "00000000-0000-0000-0000-000000000811",
+ "id": "00000000-0000-0000-0000-000000000814",
},
"targetPerson": {
- "id": "00000000-0000-0000-0000-000000000809",
+ "id": "00000000-0000-0000-0000-000000000812",
},
"targetTask": {
- "id": "00000000-0000-0000-0000-000000000812",
+ "id": "00000000-0000-0000-0000-000000000815",
},
"targetWorkflow": {
- "id": "00000000-0000-0000-0000-000000000814",
+ "id": "00000000-0000-0000-0000-000000000817",
},
"targetWorkflowRun": {
- "id": "00000000-0000-0000-0000-000000000816",
+ "id": "00000000-0000-0000-0000-000000000819",
},
"targetWorkflowVersion": {
- "id": "00000000-0000-0000-0000-000000000815",
+ "id": "00000000-0000-0000-0000-000000000818",
},
"timelineActivityTypeId": {
- "id": "00000000-0000-0000-0000-000000000804",
+ "id": "00000000-0000-0000-0000-000000000807",
},
"timelineActivityTypeSnapshot": {
- "id": "00000000-0000-0000-0000-000000000805",
+ "id": "00000000-0000-0000-0000-000000000808",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000798",
+ "id": "00000000-0000-0000-0000-000000000801",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000801",
+ "id": "00000000-0000-0000-0000-000000000804",
},
"workspaceMember": {
- "id": "00000000-0000-0000-0000-000000000808",
+ "id": "00000000-0000-0000-0000-000000000811",
},
},
- "id": "00000000-0000-0000-0000-000000000836",
+ "id": "00000000-0000-0000-0000-000000000839",
"views": {
"allTimelineActivities": {
- "id": "00000000-0000-0000-0000-000000000835",
+ "id": "00000000-0000-0000-0000-000000000838",
"viewFieldGroups": {},
"viewFields": {
"happensAt": {
- "id": "00000000-0000-0000-0000-000000000824",
+ "id": "00000000-0000-0000-0000-000000000827",
},
"linkedRecordCachedName": {
- "id": "00000000-0000-0000-0000-000000000823",
+ "id": "00000000-0000-0000-0000-000000000826",
},
"targetCompany": {
- "id": "00000000-0000-0000-0000-000000000827",
+ "id": "00000000-0000-0000-0000-000000000830",
},
"targetDashboard": {
- "id": "00000000-0000-0000-0000-000000000834",
+ "id": "00000000-0000-0000-0000-000000000837",
},
"targetNote": {
- "id": "00000000-0000-0000-0000-000000000830",
+ "id": "00000000-0000-0000-0000-000000000833",
},
"targetOpportunity": {
- "id": "00000000-0000-0000-0000-000000000828",
+ "id": "00000000-0000-0000-0000-000000000831",
},
"targetPerson": {
- "id": "00000000-0000-0000-0000-000000000826",
+ "id": "00000000-0000-0000-0000-000000000829",
},
"targetTask": {
- "id": "00000000-0000-0000-0000-000000000829",
+ "id": "00000000-0000-0000-0000-000000000832",
},
"targetWorkflow": {
- "id": "00000000-0000-0000-0000-000000000831",
+ "id": "00000000-0000-0000-0000-000000000834",
},
"targetWorkflowRun": {
- "id": "00000000-0000-0000-0000-000000000833",
+ "id": "00000000-0000-0000-0000-000000000836",
},
"targetWorkflowVersion": {
- "id": "00000000-0000-0000-0000-000000000832",
+ "id": "00000000-0000-0000-0000-000000000835",
},
"workspaceMember": {
- "id": "00000000-0000-0000-0000-000000000825",
+ "id": "00000000-0000-0000-0000-000000000828",
},
},
"viewGroups": {},
@@ -3161,80 +3203,80 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"workflow": {
"fields": {
"attachments": {
- "id": "00000000-0000-0000-0000-000000000853",
+ "id": "00000000-0000-0000-0000-000000000856",
},
"automatedTriggers": {
- "id": "00000000-0000-0000-0000-000000000851",
+ "id": "00000000-0000-0000-0000-000000000854",
},
"coreWorkflowId": {
- "id": "00000000-0000-0000-0000-000000000847",
+ "id": "00000000-0000-0000-0000-000000000850",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000838",
+ "id": "00000000-0000-0000-0000-000000000841",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000841",
+ "id": "00000000-0000-0000-0000-000000000844",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000840",
+ "id": "00000000-0000-0000-0000-000000000843",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000837",
+ "id": "00000000-0000-0000-0000-000000000840",
},
"lastPublishedVersionId": {
- "id": "00000000-0000-0000-0000-000000000846",
+ "id": "00000000-0000-0000-0000-000000000849",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000845",
+ "id": "00000000-0000-0000-0000-000000000848",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000843",
+ "id": "00000000-0000-0000-0000-000000000846",
},
"runs": {
- "id": "00000000-0000-0000-0000-000000000850",
+ "id": "00000000-0000-0000-0000-000000000853",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000844",
+ "id": "00000000-0000-0000-0000-000000000847",
},
"statuses": {
- "id": "00000000-0000-0000-0000-000000000848",
+ "id": "00000000-0000-0000-0000-000000000851",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000852",
+ "id": "00000000-0000-0000-0000-000000000855",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000839",
+ "id": "00000000-0000-0000-0000-000000000842",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000842",
+ "id": "00000000-0000-0000-0000-000000000845",
},
"versions": {
- "id": "00000000-0000-0000-0000-000000000849",
+ "id": "00000000-0000-0000-0000-000000000852",
},
},
- "id": "00000000-0000-0000-0000-000000000861",
+ "id": "00000000-0000-0000-0000-000000000864",
"views": {
"allWorkflows": {
- "id": "00000000-0000-0000-0000-000000000860",
+ "id": "00000000-0000-0000-0000-000000000863",
"viewFieldGroups": {},
"viewFields": {
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000857",
+ "id": "00000000-0000-0000-0000-000000000860",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000854",
+ "id": "00000000-0000-0000-0000-000000000857",
},
"runs": {
- "id": "00000000-0000-0000-0000-000000000859",
+ "id": "00000000-0000-0000-0000-000000000862",
},
"statuses": {
- "id": "00000000-0000-0000-0000-000000000855",
+ "id": "00000000-0000-0000-0000-000000000858",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000856",
+ "id": "00000000-0000-0000-0000-000000000859",
},
"versions": {
- "id": "00000000-0000-0000-0000-000000000858",
+ "id": "00000000-0000-0000-0000-000000000861",
},
},
"viewGroups": {},
@@ -3244,79 +3286,79 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"workflowAutomatedTrigger": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000863",
+ "id": "00000000-0000-0000-0000-000000000866",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000866",
+ "id": "00000000-0000-0000-0000-000000000869",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000865",
+ "id": "00000000-0000-0000-0000-000000000868",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000862",
+ "id": "00000000-0000-0000-0000-000000000865",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000868",
+ "id": "00000000-0000-0000-0000-000000000871",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000869",
+ "id": "00000000-0000-0000-0000-000000000872",
},
"settings": {
- "id": "00000000-0000-0000-0000-000000000871",
+ "id": "00000000-0000-0000-0000-000000000874",
},
"type": {
- "id": "00000000-0000-0000-0000-000000000870",
+ "id": "00000000-0000-0000-0000-000000000873",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000864",
+ "id": "00000000-0000-0000-0000-000000000867",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000867",
+ "id": "00000000-0000-0000-0000-000000000870",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000872",
+ "id": "00000000-0000-0000-0000-000000000875",
},
},
- "id": "00000000-0000-0000-0000-000000000884",
+ "id": "00000000-0000-0000-0000-000000000887",
"views": {
"allWorkflowAutomatedTriggers": {
- "id": "00000000-0000-0000-0000-000000000876",
+ "id": "00000000-0000-0000-0000-000000000879",
"viewFieldGroups": {},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000875",
+ "id": "00000000-0000-0000-0000-000000000878",
},
"type": {
- "id": "00000000-0000-0000-0000-000000000873",
+ "id": "00000000-0000-0000-0000-000000000876",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000874",
+ "id": "00000000-0000-0000-0000-000000000877",
},
},
"viewGroups": {},
},
"workflowAutomatedTriggerRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000883",
+ "id": "00000000-0000-0000-0000-000000000886",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000881",
+ "id": "00000000-0000-0000-0000-000000000884",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000882",
+ "id": "00000000-0000-0000-0000-000000000885",
},
},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000879",
+ "id": "00000000-0000-0000-0000-000000000882",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000880",
+ "id": "00000000-0000-0000-0000-000000000883",
},
"type": {
- "id": "00000000-0000-0000-0000-000000000877",
+ "id": "00000000-0000-0000-0000-000000000880",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000878",
+ "id": "00000000-0000-0000-0000-000000000881",
},
},
"viewGroups": {},
@@ -3326,130 +3368,130 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"workflowRun": {
"fields": {
"coreWorkflowId": {
- "id": "00000000-0000-0000-0000-000000000902",
+ "id": "00000000-0000-0000-0000-000000000905",
},
"coreWorkflowVersionId": {
- "id": "00000000-0000-0000-0000-000000000903",
+ "id": "00000000-0000-0000-0000-000000000906",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000886",
+ "id": "00000000-0000-0000-0000-000000000889",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000889",
+ "id": "00000000-0000-0000-0000-000000000892",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000888",
+ "id": "00000000-0000-0000-0000-000000000891",
},
"endedAt": {
- "id": "00000000-0000-0000-0000-000000000898",
+ "id": "00000000-0000-0000-0000-000000000901",
},
"enqueuedAt": {
- "id": "00000000-0000-0000-0000-000000000896",
+ "id": "00000000-0000-0000-0000-000000000899",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000885",
+ "id": "00000000-0000-0000-0000-000000000888",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000893",
+ "id": "00000000-0000-0000-0000-000000000896",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000891",
+ "id": "00000000-0000-0000-0000-000000000894",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000892",
+ "id": "00000000-0000-0000-0000-000000000895",
},
"startedAt": {
- "id": "00000000-0000-0000-0000-000000000897",
+ "id": "00000000-0000-0000-0000-000000000900",
},
"state": {
- "id": "00000000-0000-0000-0000-000000000900",
+ "id": "00000000-0000-0000-0000-000000000903",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000899",
+ "id": "00000000-0000-0000-0000-000000000902",
},
"stepLogs": {
- "id": "00000000-0000-0000-0000-000000000901",
+ "id": "00000000-0000-0000-0000-000000000904",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000904",
+ "id": "00000000-0000-0000-0000-000000000907",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000887",
+ "id": "00000000-0000-0000-0000-000000000890",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000890",
+ "id": "00000000-0000-0000-0000-000000000893",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000895",
+ "id": "00000000-0000-0000-0000-000000000898",
},
"workflowVersion": {
- "id": "00000000-0000-0000-0000-000000000894",
+ "id": "00000000-0000-0000-0000-000000000897",
},
},
- "id": "00000000-0000-0000-0000-000000000924",
+ "id": "00000000-0000-0000-0000-000000000927",
"views": {
"allWorkflowRuns": {
- "id": "00000000-0000-0000-0000-000000000908",
+ "id": "00000000-0000-0000-0000-000000000911",
"viewFieldGroups": {},
"viewFields": {
"name": {
- "id": "00000000-0000-0000-0000-000000000905",
+ "id": "00000000-0000-0000-0000-000000000908",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000907",
+ "id": "00000000-0000-0000-0000-000000000910",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000906",
+ "id": "00000000-0000-0000-0000-000000000909",
},
},
"viewGroups": {},
},
"workflowRunRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000923",
+ "id": "00000000-0000-0000-0000-000000000926",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000921",
+ "id": "00000000-0000-0000-0000-000000000924",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000922",
+ "id": "00000000-0000-0000-0000-000000000925",
},
},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000914",
+ "id": "00000000-0000-0000-0000-000000000917",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000915",
+ "id": "00000000-0000-0000-0000-000000000918",
},
"endedAt": {
- "id": "00000000-0000-0000-0000-000000000913",
+ "id": "00000000-0000-0000-0000-000000000916",
},
"enqueuedAt": {
- "id": "00000000-0000-0000-0000-000000000916",
+ "id": "00000000-0000-0000-0000-000000000919",
},
"startedAt": {
- "id": "00000000-0000-0000-0000-000000000912",
+ "id": "00000000-0000-0000-0000-000000000915",
},
"state": {
- "id": "00000000-0000-0000-0000-000000000917",
+ "id": "00000000-0000-0000-0000-000000000920",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000909",
+ "id": "00000000-0000-0000-0000-000000000912",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000920",
+ "id": "00000000-0000-0000-0000-000000000923",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000918",
+ "id": "00000000-0000-0000-0000-000000000921",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000919",
+ "id": "00000000-0000-0000-0000-000000000922",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000910",
+ "id": "00000000-0000-0000-0000-000000000913",
},
"workflowVersion": {
- "id": "00000000-0000-0000-0000-000000000911",
+ "id": "00000000-0000-0000-0000-000000000914",
},
},
"viewGroups": {},
@@ -3459,118 +3501,118 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"workflowVersion": {
"fields": {
"coreWorkflowVersionId": {
- "id": "00000000-0000-0000-0000-000000000939",
+ "id": "00000000-0000-0000-0000-000000000942",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000926",
+ "id": "00000000-0000-0000-0000-000000000929",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000929",
+ "id": "00000000-0000-0000-0000-000000000932",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000928",
+ "id": "00000000-0000-0000-0000-000000000931",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000925",
+ "id": "00000000-0000-0000-0000-000000000928",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000933",
+ "id": "00000000-0000-0000-0000-000000000936",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000931",
+ "id": "00000000-0000-0000-0000-000000000934",
},
"runs": {
- "id": "00000000-0000-0000-0000-000000000937",
+ "id": "00000000-0000-0000-0000-000000000940",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000932",
+ "id": "00000000-0000-0000-0000-000000000935",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000936",
+ "id": "00000000-0000-0000-0000-000000000939",
},
"steps": {
- "id": "00000000-0000-0000-0000-000000000938",
+ "id": "00000000-0000-0000-0000-000000000941",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000940",
+ "id": "00000000-0000-0000-0000-000000000943",
},
"trigger": {
- "id": "00000000-0000-0000-0000-000000000935",
+ "id": "00000000-0000-0000-0000-000000000938",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000927",
+ "id": "00000000-0000-0000-0000-000000000930",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000930",
+ "id": "00000000-0000-0000-0000-000000000933",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000934",
+ "id": "00000000-0000-0000-0000-000000000937",
},
},
- "id": "00000000-0000-0000-0000-000000000960",
+ "id": "00000000-0000-0000-0000-000000000963",
"views": {
"allWorkflowVersions": {
- "id": "00000000-0000-0000-0000-000000000946",
+ "id": "00000000-0000-0000-0000-000000000949",
"viewFieldGroups": {},
"viewFields": {
"name": {
- "id": "00000000-0000-0000-0000-000000000941",
+ "id": "00000000-0000-0000-0000-000000000944",
},
"runs": {
- "id": "00000000-0000-0000-0000-000000000945",
+ "id": "00000000-0000-0000-0000-000000000948",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000943",
+ "id": "00000000-0000-0000-0000-000000000946",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000944",
+ "id": "00000000-0000-0000-0000-000000000947",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000942",
+ "id": "00000000-0000-0000-0000-000000000945",
},
},
"viewGroups": {},
},
"workflowVersionRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000959",
+ "id": "00000000-0000-0000-0000-000000000962",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000957",
+ "id": "00000000-0000-0000-0000-000000000960",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000958",
+ "id": "00000000-0000-0000-0000-000000000961",
},
},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000950",
+ "id": "00000000-0000-0000-0000-000000000953",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000952",
+ "id": "00000000-0000-0000-0000-000000000955",
},
"runs": {
- "id": "00000000-0000-0000-0000-000000000955",
+ "id": "00000000-0000-0000-0000-000000000958",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000947",
+ "id": "00000000-0000-0000-0000-000000000950",
},
"steps": {
- "id": "00000000-0000-0000-0000-000000000951",
+ "id": "00000000-0000-0000-0000-000000000954",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000956",
+ "id": "00000000-0000-0000-0000-000000000959",
},
"trigger": {
- "id": "00000000-0000-0000-0000-000000000949",
+ "id": "00000000-0000-0000-0000-000000000952",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000953",
+ "id": "00000000-0000-0000-0000-000000000956",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000954",
+ "id": "00000000-0000-0000-0000-000000000957",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000948",
+ "id": "00000000-0000-0000-0000-000000000951",
},
},
"viewGroups": {},
@@ -3580,110 +3622,110 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"workspaceMember": {
"fields": {
"accountOwnerForCompanies": {
- "id": "00000000-0000-0000-0000-000000000980",
+ "id": "00000000-0000-0000-0000-000000000983",
},
"assignedTasks": {
- "id": "00000000-0000-0000-0000-000000000978",
+ "id": "00000000-0000-0000-0000-000000000981",
},
"avatarUrl": {
- "id": "00000000-0000-0000-0000-000000000974",
+ "id": "00000000-0000-0000-0000-000000000977",
},
"blocklist": {
- "id": "00000000-0000-0000-0000-000000000982",
+ "id": "00000000-0000-0000-0000-000000000985",
},
"calendarEventParticipants": {
- "id": "00000000-0000-0000-0000-000000000983",
+ "id": "00000000-0000-0000-0000-000000000986",
},
"calendarStartDay": {
- "id": "00000000-0000-0000-0000-000000000988",
+ "id": "00000000-0000-0000-0000-000000000991",
},
"colorScheme": {
- "id": "00000000-0000-0000-0000-000000000970",
+ "id": "00000000-0000-0000-0000-000000000973",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000962",
+ "id": "00000000-0000-0000-0000-000000000965",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000965",
+ "id": "00000000-0000-0000-0000-000000000968",
},
"dateFormat": {
- "id": "00000000-0000-0000-0000-000000000986",
+ "id": "00000000-0000-0000-0000-000000000989",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000964",
+ "id": "00000000-0000-0000-0000-000000000967",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000961",
+ "id": "00000000-0000-0000-0000-000000000964",
},
"jobTitle": {
- "id": "00000000-0000-0000-0000-000000000976",
+ "id": "00000000-0000-0000-0000-000000000979",
},
"locale": {
- "id": "00000000-0000-0000-0000-000000000973",
+ "id": "00000000-0000-0000-0000-000000000976",
},
"messageParticipants": {
- "id": "00000000-0000-0000-0000-000000000981",
+ "id": "00000000-0000-0000-0000-000000000984",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000969",
+ "id": "00000000-0000-0000-0000-000000000972",
},
"numberFormat": {
- "id": "00000000-0000-0000-0000-000000000989",
+ "id": "00000000-0000-0000-0000-000000000992",
},
"openRecordIn": {
- "id": "00000000-0000-0000-0000-000000000972",
+ "id": "00000000-0000-0000-0000-000000000975",
},
"ownedOpportunities": {
- "id": "00000000-0000-0000-0000-000000000979",
+ "id": "00000000-0000-0000-0000-000000000982",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000967",
+ "id": "00000000-0000-0000-0000-000000000970",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000968",
+ "id": "00000000-0000-0000-0000-000000000971",
},
"timeFormat": {
- "id": "00000000-0000-0000-0000-000000000987",
+ "id": "00000000-0000-0000-0000-000000000990",
},
"timeZone": {
- "id": "00000000-0000-0000-0000-000000000985",
+ "id": "00000000-0000-0000-0000-000000000988",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000984",
+ "id": "00000000-0000-0000-0000-000000000987",
},
"uiScale": {
- "id": "00000000-0000-0000-0000-000000000971",
+ "id": "00000000-0000-0000-0000-000000000974",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000963",
+ "id": "00000000-0000-0000-0000-000000000966",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000966",
+ "id": "00000000-0000-0000-0000-000000000969",
},
"userEmail": {
- "id": "00000000-0000-0000-0000-000000000975",
+ "id": "00000000-0000-0000-0000-000000000978",
},
"userId": {
- "id": "00000000-0000-0000-0000-000000000977",
+ "id": "00000000-0000-0000-0000-000000000980",
},
},
- "id": "00000000-0000-0000-0000-000000000995",
+ "id": "00000000-0000-0000-0000-000000000998",
"views": {
"allWorkspaceMembers": {
- "id": "00000000-0000-0000-0000-000000000994",
+ "id": "00000000-0000-0000-0000-000000000997",
"viewFieldGroups": {},
"viewFields": {
"assignedTasks": {
- "id": "00000000-0000-0000-0000-000000000993",
+ "id": "00000000-0000-0000-0000-000000000996",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000991",
+ "id": "00000000-0000-0000-0000-000000000994",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000990",
+ "id": "00000000-0000-0000-0000-000000000993",
},
"ownedOpportunities": {
- "id": "00000000-0000-0000-0000-000000000992",
+ "id": "00000000-0000-0000-0000-000000000995",
},
},
"viewGroups": {},
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/compute-agent-chat-thread-target-standard-metadata.spec.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/compute-agent-chat-thread-target-standard-metadata.spec.ts
new file mode 100644
index 00000000000..c3499f3b855
--- /dev/null
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/compute-agent-chat-thread-target-standard-metadata.spec.ts
@@ -0,0 +1,144 @@
+import { STANDARD_OBJECTS } from 'twenty-shared/metadata';
+import {
+ FieldMetadataType,
+ RelationOnDeleteAction,
+ RelationType,
+} from 'twenty-shared/types';
+
+import { computeTwentyStandardApplicationAllFlatEntityMaps } from 'src/engine/workspace-manager/twenty-standard-application/utils/twenty-standard-application-all-flat-entity-maps.constant';
+
+const { allFlatEntityMaps } = computeTwentyStandardApplicationAllFlatEntityMaps(
+ {
+ now: '2026-09-22T00:00:00.000Z',
+ workspaceId: '20202020-1111-4111-8111-111111111111',
+ twentyStandardApplicationId: '20202020-2222-4222-8222-222222222222',
+ },
+);
+
+const findField = (universalIdentifier: string) =>
+ allFlatEntityMaps.flatFieldMetadataMaps.byUniversalIdentifier[
+ universalIdentifier
+ ];
+
+const findIndex = (
+ indexName: keyof typeof STANDARD_OBJECTS.agentChatThreadTarget.indexes,
+) =>
+ allFlatEntityMaps.flatIndexMaps.byUniversalIdentifier[
+ STANDARD_OBJECTS.agentChatThreadTarget.indexes[indexName]
+ .universalIdentifier
+ ];
+
+// Postgres only uses a composite btree for a predicate that matches its leading
+// columns, so which columns an index carries and in what order is part of the
+// contract the read and write paths depend on, not an implementation detail.
+const getIndexedFieldUniversalIdentifiers = (
+ indexName: keyof typeof STANDARD_OBJECTS.agentChatThreadTarget.indexes,
+) =>
+ findIndex(indexName)?.flatIndexFieldMetadatas.map(
+ (indexField) =>
+ allFlatEntityMaps.flatFieldMetadataMaps.universalIdentifierById[
+ indexField.fieldMetadataId
+ ],
+ );
+
+const fields = STANDARD_OBJECTS.agentChatThreadTarget.fields;
+
+const LEGS = [
+ {
+ objectName: 'person',
+ leg: fields.targetPerson,
+ joinColumnName: 'targetPersonId',
+ idIndexName: 'personIdIndex',
+ uniqueIndexName: 'threadPersonUniqueIndex',
+ },
+ {
+ objectName: 'company',
+ leg: fields.targetCompany,
+ joinColumnName: 'targetCompanyId',
+ idIndexName: 'companyIdIndex',
+ uniqueIndexName: 'threadCompanyUniqueIndex',
+ },
+ {
+ objectName: 'opportunity',
+ leg: fields.targetOpportunity,
+ joinColumnName: 'targetOpportunityId',
+ idIndexName: 'opportunityIdIndex',
+ uniqueIndexName: 'threadOpportunityUniqueIndex',
+ },
+] as const;
+
+describe('agent chat thread target workspace metadata', () => {
+ // One morph id makes the legs a single polymorphic target, which is what the
+ // default-relation tooling extends for custom objects. CASCADE is the only
+ // thing that removes a destroyed record's links.
+ it.each(LEGS)(
+ 'attaches to a $objectName through its own leg of the target morph',
+ ({ objectName, leg, joinColumnName }) => {
+ expect(findField(leg.universalIdentifier)).toMatchObject({
+ type: FieldMetadataType.MORPH_RELATION,
+ morphId:
+ STANDARD_OBJECTS.agentChatThreadTarget.morphIds.targetMorphId.morphId,
+ isUIEditable: false,
+ relationTargetObjectMetadataUniversalIdentifier:
+ STANDARD_OBJECTS[objectName].universalIdentifier,
+ relationTargetFieldMetadataUniversalIdentifier:
+ STANDARD_OBJECTS[objectName].fields.agentChatThreadTargets
+ .universalIdentifier,
+ universalSettings: {
+ relationType: RelationType.MANY_TO_ONE,
+ onDelete: RelationOnDeleteAction.CASCADE,
+ joinColumnName,
+ },
+ });
+ },
+ );
+
+ it.each(LEGS)(
+ 'gives the $objectName the reverse side of its leg',
+ ({ objectName, leg }) => {
+ expect(
+ findField(
+ STANDARD_OBJECTS[objectName].fields.agentChatThreadTargets
+ .universalIdentifier,
+ ),
+ ).toMatchObject({
+ type: FieldMetadataType.RELATION,
+ relationTargetObjectMetadataUniversalIdentifier:
+ STANDARD_OBJECTS.agentChatThreadTarget.universalIdentifier,
+ relationTargetFieldMetadataUniversalIdentifier: leg.universalIdentifier,
+ universalSettings: { relationType: RelationType.ONE_TO_MANY },
+ });
+ },
+ );
+
+ // A second attach of the same thread to the same record must not add a row.
+ it.each(LEGS)(
+ 'keeps one live link per thread and $objectName',
+ ({ leg, uniqueIndexName }) => {
+ expect(findIndex(uniqueIndexName)).toMatchObject({
+ isUnique: true,
+ indexWhereClause: '"deletedAt" IS NULL',
+ });
+ expect(getIndexedFieldUniversalIdentifiers(uniqueIndexName)).toEqual([
+ fields.thread.universalIdentifier,
+ leg.universalIdentifier,
+ ]);
+ },
+ );
+
+ it.each(LEGS)(
+ 'indexes the $objectName join column the record lookup filters on',
+ ({ leg, idIndexName }) => {
+ expect(findIndex(idIndexName)).toMatchObject({ isUnique: false });
+ expect(getIndexedFieldUniversalIdentifiers(idIndexName)).toEqual([
+ leg.universalIdentifier,
+ ]);
+ },
+ );
+
+ it('indexes the thread side the relation cascades from', () => {
+ expect(getIndexedFieldUniversalIdentifiers('threadIdIndex')).toEqual([
+ fields.thread.universalIdentifier,
+ ]);
+ });
+});
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/compute-agent-history-standard-metadata.spec.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/compute-agent-history-standard-metadata.spec.ts
index 551db140e48..c25eb75cae3 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/compute-agent-history-standard-metadata.spec.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/compute-agent-history-standard-metadata.spec.ts
@@ -13,6 +13,7 @@ import { computeTwentyStandardApplicationAllFlatEntityMaps } from 'src/engine/wo
const OBJECT_NAMES = [
'agentChatThread',
+ 'agentChatThreadTarget',
'agentMessage',
'agentMessagePart',
'agentTurn',
@@ -88,6 +89,24 @@ describe('agent history workspace metadata', () => {
).toMatchObject({ isUnique: false });
},
);
+ // Conversations are shareable records and their record links inherit from
+ // them; the rest of the history is written and read by the platform only.
+ const SHARED_ACCESS_POLICY_BY_OBJECT_NAME: Partial<
+ Record<
+ (typeof OBJECT_NAMES)[number],
+ { readability: MetadataReadability; writability: MetadataWritability }
+ >
+ > = {
+ agentChatThread: {
+ readability: MetadataReadability.PRIVATE,
+ writability: MetadataWritability.OPEN,
+ },
+ agentChatThreadTarget: {
+ readability: MetadataReadability.INHERITED,
+ writability: MetadataWritability.OPEN,
+ },
+ };
+
it.each(OBJECT_NAMES)('keeps %s protected by metadata policy', (name) => {
expect(
allFlatEntityMaps.flatObjectMetadataMaps.byUniversalIdentifier[
@@ -100,14 +119,10 @@ describe('agent history workspace metadata', () => {
isAuditLogged: false,
isUICreatable: false,
isUIEditable: false,
- readability:
- name === 'agentChatThread'
- ? MetadataReadability.PRIVATE
- : MetadataReadability.SYSTEM,
- writability:
- name === 'agentChatThread'
- ? MetadataWritability.OPEN
- : MetadataWritability.SYSTEM,
+ ...(SHARED_ACCESS_POLICY_BY_OBJECT_NAME[name] ?? {
+ readability: MetadataReadability.SYSTEM,
+ writability: MetadataWritability.SYSTEM,
+ }),
});
});
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/standard-object-readability.spec.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/standard-object-readability.spec.ts
index adbee6cff05..d7174855e55 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/standard-object-readability.spec.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/standard-object-readability.spec.ts
@@ -22,6 +22,7 @@ const INHERITED_STANDARD_OBJECT_PARENT_FIELDS = {
taskTarget: STANDARD_OBJECT_FIELDS.taskTarget.targetPerson,
messageThreadTarget: STANDARD_OBJECT_FIELDS.messageThreadTarget.messageThread,
calendarEventTarget: STANDARD_OBJECT_FIELDS.calendarEventTarget.calendarEvent,
+ agentChatThreadTarget: STANDARD_OBJECT_FIELDS.agentChatThreadTarget.thread,
} as const;
describe('Standard object readability', () => {
@@ -91,6 +92,23 @@ describe('Standard object readability', () => {
});
});
+ // A link inheriting from its record, as noteTarget does, would tell everyone
+ // who can read the record which private conversations are filed under it.
+ it('resolves its thread as the only parent of an agentChatThreadTarget', () => {
+ expect(
+ resolveParents('agentChatThreadTarget').map((parent) =>
+ parent.kind === 'column'
+ ? {
+ joinColumnName: parent.joinColumnName,
+ parentNameSingular: parent.parentFlatObjectMetadata.nameSingular,
+ }
+ : parent.kind,
+ ),
+ ).toEqual([
+ { joinColumnName: 'threadId', parentNameSingular: 'agentChatThread' },
+ ]);
+ });
+
it.each(inheritedObjectNames)(
'declares %s INHERITED from its parent field',
(objectName) => {
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/build-standard-flat-field-metadata-maps.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/build-standard-flat-field-metadata-maps.util.ts
index b7637cb0ed7..2896611d809 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/build-standard-flat-field-metadata-maps.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/build-standard-flat-field-metadata-maps.util.ts
@@ -5,6 +5,7 @@ import { buildAgentMessagePartStandardFlatFieldMetadatas } from 'src/engine/work
import { buildAgentMessageStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-message-standard-flat-field-metadata.util';
import { buildAgentTurnStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-turn-standard-flat-field-metadata.util';
import { buildAgentChatThreadStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-chat-thread-standard-flat-field-metadata.util';
+import { buildAgentChatThreadTargetStandardFlatFieldMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-chat-thread-target-standard-flat-field-metadata.util';
import { type FieldMetadataType } from 'twenty-shared/types';
import { createEmptyFlatEntityMaps } from 'src/engine/metadata-modules/flat-entity/constant/create-empty-flat-entity-maps.constant';
@@ -57,6 +58,7 @@ const STANDARD_FLAT_FIELD_METADATA_BUILDERS_BY_OBJECT_NAME = {
agentMessage: buildAgentMessageStandardFlatFieldMetadatas,
agentTurn: buildAgentTurnStandardFlatFieldMetadatas,
agentChatThread: buildAgentChatThreadStandardFlatFieldMetadatas,
+ agentChatThreadTarget: buildAgentChatThreadTargetStandardFlatFieldMetadatas,
attachment: buildAttachmentStandardFlatFieldMetadatas,
blocklist: buildBlocklistStandardFlatFieldMetadatas,
calendarChannelEventAssociation:
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-chat-thread-standard-flat-field-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-chat-thread-standard-flat-field-metadata.util.ts
index cccdb49f3a0..7673f83967d 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-chat-thread-standard-flat-field-metadata.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-chat-thread-standard-flat-field-metadata.util.ts
@@ -557,4 +557,34 @@ export const buildAgentChatThreadStandardFlatFieldMetadatas = (
writability: MetadataWritability.SYSTEM,
isAuditLogged: false,
},
+ recordTargets: {
+ ...createStandardRelationFieldFlatMetadata({
+ ...args,
+ context: {
+ fieldName: 'recordTargets',
+ type: FieldMetadataType.RELATION,
+ label: i18nLabel(
+ msg({ message: 'Record Targets', context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: 'Records this thread is attached to',
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: 'IconRelationOneToMany',
+ isUIEditable: false,
+ isNullable: true,
+ targetObjectName: 'agentChatThreadTarget',
+ targetFieldName: 'thread',
+ morphId: null,
+ settings: {
+ relationType: RelationType.ONE_TO_MANY,
+ joinColumnName: null,
+ },
+ },
+ }),
+ writability: MetadataWritability.SYSTEM,
+ isAuditLogged: false,
+ },
});
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-chat-thread-target-standard-flat-field-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-chat-thread-target-standard-flat-field-metadata.util.ts
new file mode 100644
index 00000000000..37436034fca
--- /dev/null
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-agent-chat-thread-target-standard-flat-field-metadata.util.ts
@@ -0,0 +1,233 @@
+import { msg } from '@lingui/core/macro';
+import { STANDARD_OBJECTS } from 'twenty-shared/metadata';
+import {
+ FieldMetadataType,
+ RelationOnDeleteAction,
+ RelationType,
+} from 'twenty-shared/types';
+
+import { type FlatFieldMetadata } from 'src/engine/metadata-modules/flat-field-metadata/types/flat-field-metadata.type';
+import { type AllStandardObjectFieldName } from 'src/engine/workspace-manager/twenty-standard-application/types/all-standard-object-field-name.type';
+import {
+ type CreateStandardFieldArgs,
+ createStandardFieldFlatMetadata,
+} from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/create-standard-field-flat-metadata.util';
+import { createStandardRelationFieldFlatMetadata } from 'src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/create-standard-relation-field-flat-metadata.util';
+import { i18nLabel } from 'src/engine/workspace-manager/twenty-standard-application/utils/i18n-label.util';
+
+export const buildAgentChatThreadTargetStandardFlatFieldMetadatas = (
+ args: Omit<
+ CreateStandardFieldArgs<'agentChatThreadTarget', FieldMetadataType>,
+ 'context'
+ >,
+): Record<
+ AllStandardObjectFieldName<'agentChatThreadTarget'>,
+ FlatFieldMetadata
+> => ({
+ id: {
+ ...createStandardFieldFlatMetadata({
+ ...args,
+ context: {
+ fieldName: 'id',
+ type: FieldMetadataType.UUID,
+ label: i18nLabel(
+ msg({ message: 'ID', context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({ message: 'ID', context: 'fieldMetadata.description' }),
+ ),
+ icon: 'IconId',
+ isSystem: true,
+ isUIEditable: false,
+ isNullable: false,
+ defaultValue: 'uuid',
+ },
+ }),
+ isAuditLogged: false,
+ },
+ thread: {
+ ...createStandardRelationFieldFlatMetadata({
+ ...args,
+ context: {
+ fieldName: 'thread',
+ type: FieldMetadataType.RELATION,
+ label: i18nLabel(
+ msg({ message: 'Thread', context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({ message: 'Thread', context: 'fieldMetadata.description' }),
+ ),
+ icon: 'IconRelationOneToMany',
+ isUIEditable: false,
+ isNullable: false,
+ targetObjectName: 'agentChatThread',
+ targetFieldName: 'recordTargets',
+ morphId: null,
+ settings: {
+ relationType: RelationType.MANY_TO_ONE,
+ onDelete: RelationOnDeleteAction.CASCADE,
+ joinColumnName: 'threadId',
+ },
+ },
+ }),
+ isAuditLogged: false,
+ },
+ targetPerson: {
+ ...createStandardRelationFieldFlatMetadata({
+ ...args,
+ context: {
+ fieldName: 'targetPerson',
+ type: FieldMetadataType.MORPH_RELATION,
+ label: i18nLabel(
+ msg({ message: 'Person', context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: 'Record the chat is attached to',
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: 'IconUser',
+ isNullable: true,
+ isUIEditable: false,
+ isSystemSideEffect: true,
+ targetObjectName: 'person',
+ targetFieldName: 'agentChatThreadTargets',
+ morphId:
+ STANDARD_OBJECTS.agentChatThreadTarget.morphIds.targetMorphId.morphId,
+ settings: {
+ relationType: RelationType.MANY_TO_ONE,
+ onDelete: RelationOnDeleteAction.CASCADE,
+ joinColumnName: 'targetPersonId',
+ },
+ },
+ }),
+ isAuditLogged: false,
+ },
+ targetCompany: {
+ ...createStandardRelationFieldFlatMetadata({
+ ...args,
+ context: {
+ fieldName: 'targetCompany',
+ type: FieldMetadataType.MORPH_RELATION,
+ label: i18nLabel(
+ msg({ message: 'Company', context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: 'Record the chat is attached to',
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: 'IconBuildingSkyscraper',
+ isNullable: true,
+ isUIEditable: false,
+ isSystemSideEffect: true,
+ targetObjectName: 'company',
+ targetFieldName: 'agentChatThreadTargets',
+ morphId:
+ STANDARD_OBJECTS.agentChatThreadTarget.morphIds.targetMorphId.morphId,
+ settings: {
+ relationType: RelationType.MANY_TO_ONE,
+ onDelete: RelationOnDeleteAction.CASCADE,
+ joinColumnName: 'targetCompanyId',
+ },
+ },
+ }),
+ isAuditLogged: false,
+ },
+ targetOpportunity: {
+ ...createStandardRelationFieldFlatMetadata({
+ ...args,
+ context: {
+ fieldName: 'targetOpportunity',
+ type: FieldMetadataType.MORPH_RELATION,
+ label: i18nLabel(
+ msg({ message: 'Opportunity', context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: 'Record the chat is attached to',
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: 'IconTargetArrow',
+ isNullable: true,
+ isUIEditable: false,
+ isSystemSideEffect: true,
+ targetObjectName: 'opportunity',
+ targetFieldName: 'agentChatThreadTargets',
+ morphId:
+ STANDARD_OBJECTS.agentChatThreadTarget.morphIds.targetMorphId.morphId,
+ settings: {
+ relationType: RelationType.MANY_TO_ONE,
+ onDelete: RelationOnDeleteAction.CASCADE,
+ joinColumnName: 'targetOpportunityId',
+ },
+ },
+ }),
+ isAuditLogged: false,
+ },
+ createdAt: {
+ ...createStandardFieldFlatMetadata({
+ ...args,
+ context: {
+ fieldName: 'createdAt',
+ type: FieldMetadataType.DATE_TIME,
+ label: i18nLabel(
+ msg({ message: 'Created At', context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({ message: 'Created At', context: 'fieldMetadata.description' }),
+ ),
+ icon: 'IconCalendar',
+ isSystem: true,
+ isUIEditable: false,
+ isNullable: false,
+ defaultValue: 'now',
+ },
+ }),
+ isAuditLogged: false,
+ },
+ updatedAt: {
+ ...createStandardFieldFlatMetadata({
+ ...args,
+ context: {
+ fieldName: 'updatedAt',
+ type: FieldMetadataType.DATE_TIME,
+ label: i18nLabel(
+ msg({ message: 'Updated At', context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({ message: 'Updated At', context: 'fieldMetadata.description' }),
+ ),
+ icon: 'IconCalendar',
+ isSystem: true,
+ isUIEditable: false,
+ isNullable: false,
+ defaultValue: 'now',
+ },
+ }),
+ isAuditLogged: false,
+ },
+ deletedAt: {
+ ...createStandardFieldFlatMetadata({
+ ...args,
+ context: {
+ fieldName: 'deletedAt',
+ type: FieldMetadataType.DATE_TIME,
+ label: i18nLabel(
+ msg({ message: 'Deleted At', context: 'fieldMetadata.label' }),
+ ),
+ description: i18nLabel(
+ msg({ message: 'Deleted At', context: 'fieldMetadata.description' }),
+ ),
+ icon: 'IconCalendar',
+ isSystem: true,
+ isUIEditable: false,
+ isNullable: true,
+ },
+ }),
+ isAuditLogged: false,
+ },
+});
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-company-standard-flat-field-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-company-standard-flat-field-metadata.util.ts
index 5490fc22285..753664d9901 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-company-standard-flat-field-metadata.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-company-standard-flat-field-metadata.util.ts
@@ -483,6 +483,39 @@ export const buildCompanyStandardFlatFieldMetadatas = ({
twentyStandardApplicationId,
now,
}),
+ agentChatThreadTargets: createStandardRelationFieldFlatMetadata({
+ objectName,
+ workspaceId,
+ context: {
+ type: FieldMetadataType.RELATION,
+ morphId: null,
+ fieldName: 'agentChatThreadTargets',
+ isSystemSideEffect: true,
+ label: i18nLabel(
+ STANDARD_RELATION_FIELD_PROPERTIES_BY_RELATION_OBJECT
+ .agentChatThreadTarget.label,
+ ),
+ description: i18nLabel(
+ msg({
+ message: `Chats tied to the company`,
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: STANDARD_RELATION_FIELD_PROPERTIES_BY_RELATION_OBJECT
+ .agentChatThreadTarget.icon,
+ isUIEditable: false,
+ isNullable: true,
+ targetObjectName: 'agentChatThreadTarget',
+ targetFieldName: 'targetCompany',
+ settings: {
+ relationType: RelationType.ONE_TO_MANY,
+ },
+ },
+ standardObjectMetadataRelatedEntityIds,
+ dependencyFlatEntityMaps,
+ twentyStandardApplicationId,
+ now,
+ }),
calendarEventTargets: createStandardRelationFieldFlatMetadata({
objectName,
workspaceId,
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-opportunity-standard-flat-field-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-opportunity-standard-flat-field-metadata.util.ts
index d48c9279594..34b2f96a045 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-opportunity-standard-flat-field-metadata.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-opportunity-standard-flat-field-metadata.util.ts
@@ -505,6 +505,39 @@ export const buildOpportunityStandardFlatFieldMetadatas = ({
twentyStandardApplicationId,
now,
}),
+ agentChatThreadTargets: createStandardRelationFieldFlatMetadata({
+ objectName,
+ workspaceId,
+ context: {
+ type: FieldMetadataType.RELATION,
+ morphId: null,
+ fieldName: 'agentChatThreadTargets',
+ isSystemSideEffect: true,
+ label: i18nLabel(
+ STANDARD_RELATION_FIELD_PROPERTIES_BY_RELATION_OBJECT
+ .agentChatThreadTarget.label,
+ ),
+ description: i18nLabel(
+ msg({
+ message: `Chats tied to the opportunity`,
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: STANDARD_RELATION_FIELD_PROPERTIES_BY_RELATION_OBJECT
+ .agentChatThreadTarget.icon,
+ isUIEditable: false,
+ isNullable: true,
+ targetObjectName: 'agentChatThreadTarget',
+ targetFieldName: 'targetOpportunity',
+ settings: {
+ relationType: RelationType.ONE_TO_MANY,
+ },
+ },
+ standardObjectMetadataRelatedEntityIds,
+ dependencyFlatEntityMaps,
+ twentyStandardApplicationId,
+ now,
+ }),
calendarEventTargets: createStandardRelationFieldFlatMetadata({
objectName,
workspaceId,
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-person-standard-flat-field-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-person-standard-flat-field-metadata.util.ts
index 705520e5ba8..b3730dd16b7 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-person-standard-flat-field-metadata.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/field-metadata/compute-person-standard-flat-field-metadata.util.ts
@@ -515,6 +515,39 @@ export const buildPersonStandardFlatFieldMetadatas = ({
twentyStandardApplicationId,
now,
}),
+ agentChatThreadTargets: createStandardRelationFieldFlatMetadata({
+ objectName,
+ workspaceId,
+ context: {
+ type: FieldMetadataType.RELATION,
+ morphId: null,
+ fieldName: 'agentChatThreadTargets',
+ isSystemSideEffect: true,
+ label: i18nLabel(
+ STANDARD_RELATION_FIELD_PROPERTIES_BY_RELATION_OBJECT
+ .agentChatThreadTarget.label,
+ ),
+ description: i18nLabel(
+ msg({
+ message: `Chats tied to the contact`,
+ context: 'fieldMetadata.description',
+ }),
+ ),
+ icon: STANDARD_RELATION_FIELD_PROPERTIES_BY_RELATION_OBJECT
+ .agentChatThreadTarget.icon,
+ isUIEditable: false,
+ isNullable: true,
+ targetObjectName: 'agentChatThreadTarget',
+ targetFieldName: 'targetPerson',
+ settings: {
+ relationType: RelationType.ONE_TO_MANY,
+ },
+ },
+ standardObjectMetadataRelatedEntityIds,
+ dependencyFlatEntityMaps,
+ twentyStandardApplicationId,
+ now,
+ }),
calendarEventTargets: createStandardRelationFieldFlatMetadata({
objectName,
workspaceId,
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/build-standard-flat-index-metadata-maps.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/build-standard-flat-index-metadata-maps.util.ts
index f452607319e..11dcb5a2187 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/build-standard-flat-index-metadata-maps.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/build-standard-flat-index-metadata-maps.util.ts
@@ -5,6 +5,7 @@ import { buildAgentMessagePartStandardFlatIndexMetadatas } from 'src/engine/work
import { buildAgentMessageStandardFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/compute-agent-message-standard-flat-index-metadata.util';
import { buildAgentTurnStandardFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/compute-agent-turn-standard-flat-index-metadata.util';
import { buildAgentChatThreadStandardFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/compute-agent-chat-thread-standard-flat-index-metadata.util';
+import { buildAgentChatThreadTargetStandardFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/compute-agent-chat-thread-target-standard-flat-index-metadata.util';
import { createEmptyFlatEntityMaps } from 'src/engine/metadata-modules/flat-entity/constant/create-empty-flat-entity-maps.constant';
import { type FlatEntityMaps } from 'src/engine/metadata-modules/flat-entity/types/flat-entity-maps.type';
import { addFlatEntityToFlatEntityMapsOrThrow } from 'src/engine/metadata-modules/flat-entity/utils/add-flat-entity-to-flat-entity-maps-or-throw.util';
@@ -53,6 +54,7 @@ const STANDARD_FLAT_INDEX_METADATA_BUILDERS_BY_OBJECT_NAME = {
agentMessage: buildAgentMessageStandardFlatIndexMetadatas,
agentTurn: buildAgentTurnStandardFlatIndexMetadatas,
agentChatThread: buildAgentChatThreadStandardFlatIndexMetadatas,
+ agentChatThreadTarget: buildAgentChatThreadTargetStandardFlatIndexMetadatas,
attachment: buildAttachmentStandardFlatIndexMetadatas,
blocklist: buildBlocklistStandardFlatIndexMetadatas,
calendarChannelEventAssociation:
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/build-standard-target-flat-index-metadatas.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/build-standard-target-flat-index-metadatas.util.ts
index 240b3b0b54c..61b5106fffe 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/build-standard-target-flat-index-metadatas.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/build-standard-target-flat-index-metadatas.util.ts
@@ -7,6 +7,7 @@ import {
} from 'src/engine/workspace-manager/twenty-standard-application/utils/index/create-standard-index-flat-metadata.util';
type StandardTargetObjectName =
+ | 'agentChatThreadTarget'
| 'calendarEventTarget'
| 'messageThreadTarget'
| 'noteTarget'
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/compute-agent-chat-thread-target-standard-flat-index-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/compute-agent-chat-thread-target-standard-flat-index-metadata.util.ts
new file mode 100644
index 00000000000..b1c58a4ee2d
--- /dev/null
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/index/compute-agent-chat-thread-target-standard-flat-index-metadata.util.ts
@@ -0,0 +1,40 @@
+import { type FlatIndexMetadata } from 'src/engine/metadata-modules/flat-index-metadata/types/flat-index-metadata.type';
+import { type AllStandardObjectIndexName } from 'src/engine/workspace-manager/twenty-standard-application/types/all-standard-object-index-name.type';
+import { type CreateStandardIndexArgs } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/create-standard-index-flat-metadata.util';
+import { buildStandardTargetFlatIndexMetadatas } from 'src/engine/workspace-manager/twenty-standard-application/utils/index/build-standard-target-flat-index-metadatas.util';
+
+export const buildAgentChatThreadTargetStandardFlatIndexMetadatas = (
+ args: Omit<CreateStandardIndexArgs<'agentChatThreadTarget'>, 'context'>,
+): Record<
+ AllStandardObjectIndexName<'agentChatThreadTarget'>,
+ FlatIndexMetadata
+> => {
+ const indexes = buildStandardTargetFlatIndexMetadatas({
+ args,
+ fieldNames: {
+ parent: 'thread',
+ person: 'targetPerson',
+ company: 'targetCompany',
+ opportunity: 'targetOpportunity',
+ },
+ indexNames: {
+ parentIdIndex: 'threadIdIndex',
+ personIdIndex: 'personIdIndex',
+ companyIdIndex: 'companyIdIndex',
+ opportunityIdIndex: 'opportunityIdIndex',
+ personUniqueIndex: 'threadPersonUniqueIndex',
+ companyUniqueIndex: 'threadCompanyUniqueIndex',
+ opportunityUniqueIndex: 'threadOpportunityUniqueIndex',
+ },
+ });
+
+ return {
+ threadIdIndex: indexes.parentIdIndex,
+ personIdIndex: indexes.personIdIndex,
+ companyIdIndex: indexes.companyIdIndex,
+ opportunityIdIndex: indexes.opportunityIdIndex,
+ threadPersonUniqueIndex: indexes.personUniqueIndex,
+ threadCompanyUniqueIndex: indexes.companyUniqueIndex,
+ threadOpportunityUniqueIndex: indexes.opportunityUniqueIndex,
+ };
+};
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/object-metadata/create-standard-flat-object-metadata.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/object-metadata/create-standard-flat-object-metadata.util.ts
index 977d1d22af4..c25f8962a24 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/object-metadata/create-standard-flat-object-metadata.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/object-metadata/create-standard-flat-object-metadata.util.ts
@@ -58,6 +58,53 @@ export const STANDARD_FLAT_OBJECT_METADATA_BUILDERS_BY_OBJECT_NAME = {
labelIdentifierFieldMetadataName: 'id',
},
}),
+ agentChatThreadTarget: (
+ args: Omit<
+ CreateStandardObjectArgs<'agentChatThreadTarget'>,
+ 'context' | 'objectName'
+ >,
+ ) =>
+ createStandardObjectFlatMetadata({
+ ...args,
+ objectName: 'agentChatThreadTarget',
+ context: {
+ universalIdentifier:
+ STANDARD_OBJECTS.agentChatThreadTarget.universalIdentifier,
+ nameSingular: 'agentChatThreadTarget',
+ namePlural: 'agentChatThreadTargets',
+ labelSingular: i18nLabel(
+ msg({
+ message: 'Agent chat thread target',
+ context: 'objectMetadata.labelSingular',
+ }),
+ ),
+ labelPlural: i18nLabel(
+ msg({
+ message: 'Agent chat thread targets',
+ context: 'objectMetadata.labelPlural',
+ }),
+ ),
+ description: i18nLabel(
+ msg({
+ message: 'Record an agent chat thread is attached to',
+ context: 'objectMetadata.description',
+ }),
+ ),
+ icon: 'IconMessage',
+ isSystem: true,
+ isSearchable: false,
+ isAuditLogged: false,
+ isUIEditable: false,
+ isUICreatable: false,
+ // A link is exactly as private as the conversation it files, as a
+ // messageThreadTarget is for its thread, so it inherits from the thread
+ // rather than from the record. It stays writable because merging
+ // records re-points its legs under the caller, as for noteTarget.
+ readability: MetadataReadability.INHERITED,
+ readabilityParentFieldMetadataNames: ['thread'],
+ labelIdentifierFieldMetadataName: 'id',
+ },
+ }),
agentTurn: (
args: Omit<CreateStandardObjectArgs<'agentTurn'>, 'context' | 'objectName'>,
) =>
diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/constant/standard-object-icons.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/constant/standard-object-icons.ts
index 9274e16be76..433889055ef 100644
--- a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/constant/standard-object-icons.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/constant/standard-object-icons.ts
@@ -1,6 +1,7 @@
export const STANDARD_OBJECT_ICONS = {
activityTarget: 'IconCheckbox',
activity: 'IconCheckbox',
+ agentChatThreadTarget: 'IconMessage',
apiKey: 'IconRobot',
attachment: 'IconFileImport',
blocklist: 'IconForbid2',
diff --git a/packages/twenty-server/src/modules/company/standard-objects/company.workspace-entity.ts b/packages/twenty-server/src/modules/company/standard-objects/company.workspace-entity.ts
index f2e979b5867..3b9b3b958a3 100644
--- a/packages/twenty-server/src/modules/company/standard-objects/company.workspace-entity.ts
+++ b/packages/twenty-server/src/modules/company/standard-objects/company.workspace-entity.ts
@@ -5,6 +5,7 @@ import {
type LinksMetadata,
} from 'twenty-shared/types';
+import { type AgentChatThreadTargetWorkspaceEntity } from 'src/engine/metadata-modules/ai/ai-history/standard-objects/agent-chat-thread-target.workspace-entity';
import { type EntityRelation } from 'src/engine/workspace-manager/workspace-migration/types/entity-relation.interface';
import { type AttachmentWorkspaceEntity } from 'src/modules/attachment/standard-objects/attachment.workspace-entity';
import { type NoteTargetWorkspaceEntity } from 'src/modules/note/standard-objects/note-target.workspace-entity';
@@ -39,6 +40,9 @@ export class CompanyWorkspaceEntity {
accountOwnerId: string | null;
taskTargets: EntityRelation<TaskTargetWorkspaceEntity[]>;
noteTargets: EntityRelation<NoteTargetWorkspaceEntity[]>;
+ agentChatThreadTargets: EntityRelation<
+ AgentChatThreadTargetWorkspaceEntity[]
+ >;
calendarEventTargets: EntityRelation<CalendarEventTargetWorkspaceEntity[]>;
messageThreadTargets: EntityRelation<MessageThreadTargetWorkspaceEntity[]>;
opportunities: EntityRelation<OpportunityWorkspaceEntity[]>;
diff --git a/packages/twenty-server/src/modules/opportunity/standard-objects/opportunity.workspace-entity.ts b/packages/twenty-server/src/modules/opportunity/standard-objects/opportunity.workspace-entity.ts
index dfe71bc3e3e..c6dbf40955e 100644
--- a/packages/twenty-server/src/modules/opportunity/standard-objects/opportunity.workspace-entity.ts
+++ b/packages/twenty-server/src/modules/opportunity/standard-objects/opportunity.workspace-entity.ts
@@ -1,5 +1,6 @@
import { type ActorMetadata, type CurrencyMetadata } from 'twenty-shared/types';
+import { type AgentChatThreadTargetWorkspaceEntity } from 'src/engine/metadata-modules/ai/ai-history/standard-objects/agent-chat-thread-target.workspace-entity';
import { BaseWorkspaceEntity } from 'src/engine/twenty-orm/base.workspace-entity';
import { type EntityRelation } from 'src/engine/workspace-manager/workspace-migration/types/entity-relation.interface';
import { type AttachmentWorkspaceEntity } from 'src/modules/attachment/standard-objects/attachment.workspace-entity';
@@ -26,6 +27,9 @@ export class OpportunityWorkspaceEntity extends BaseWorkspaceEntity {
companyId: string | null;
taskTargets: EntityRelation<TaskTargetWorkspaceEntity[]>;
noteTargets: EntityRelation<NoteTargetWorkspaceEntity[]>;
+ agentChatThreadTargets: EntityRelation<
+ AgentChatThreadTargetWorkspaceEntity[]
+ >;
calendarEventTargets: EntityRelation<CalendarEventTargetWorkspaceEntity[]>;
messageThreadTargets: EntityRelation<MessageThreadTargetWorkspaceEntity[]>;
attachments: EntityRelation<AttachmentWorkspaceEntity[]>;
diff --git a/packages/twenty-server/src/modules/person/standard-objects/person.workspace-entity.ts b/packages/twenty-server/src/modules/person/standard-objects/person.workspace-entity.ts
index 39a286c2a56..f127c1ef992 100644
--- a/packages/twenty-server/src/modules/person/standard-objects/person.workspace-entity.ts
+++ b/packages/twenty-server/src/modules/person/standard-objects/person.workspace-entity.ts
@@ -7,6 +7,7 @@ import {
} from 'twenty-shared/types';
import { type FileOutput } from 'src/engine/api/common/common-args-processors/data-arg-processor/types/file-item.type';
+import { type AgentChatThreadTargetWorkspaceEntity } from 'src/engine/metadata-modules/ai/ai-history/standard-objects/agent-chat-thread-target.workspace-entity';
import { BaseWorkspaceEntity } from 'src/engine/twenty-orm/base.workspace-entity';
import { type EntityRelation } from 'src/engine/workspace-manager/workspace-migration/types/entity-relation.interface';
import { type AttachmentWorkspaceEntity } from 'src/modules/attachment/standard-objects/attachment.workspace-entity';
@@ -40,6 +41,9 @@ export class PersonWorkspaceEntity extends BaseWorkspaceEntity {
pointOfContactForOpportunities: EntityRelation<OpportunityWorkspaceEntity[]>;
taskTargets: EntityRelation<TaskTargetWorkspaceEntity[]>;
noteTargets: EntityRelation<NoteTargetWorkspaceEntity[]>;
+ agentChatThreadTargets: EntityRelation<
+ AgentChatThreadTargetWorkspaceEntity[]
+ >;
calendarEventTargets: EntityRelation<CalendarEventTargetWorkspaceEntity[]>;
messageThreadTargets: EntityRelation<MessageThreadTargetWorkspaceEntity[]>;
attachments: EntityRelation<AttachmentWorkspaceEntity[]>;
diff --git a/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/successful-export-application-data-model.integration-spec.ts.snap b/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/successful-export-application-data-model.integration-spec.ts.snap
index e926c273469..a9540301721 100644
--- a/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/successful-export-application-data-model.integration-spec.ts.snap
+++ b/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/successful-export-application-data-model.integration-spec.ts.snap
@@ -3,6 +3,30 @@
exports[`Application export - data model exports the whole application as a stable manifest and classifies every row: coverage 1`] = `
{
"deterministicUnnamed": [
+ {
+ "metadataName": "fieldMetadata",
+ "reason": null,
+ "status": "ENGINE_DERIVED",
+ "universalIdentifier": "224da30e-4e3f-5680-9c49-44fd6a5c74a3",
+ },
+ {
+ "metadataName": "fieldMetadata",
+ "reason": null,
+ "status": "ENGINE_DERIVED",
+ "universalIdentifier": "4ddb7897-eb4a-5a81-b659-513d50f337b4",
+ },
+ {
+ "metadataName": "fieldMetadata",
+ "reason": null,
+ "status": "ENGINE_DERIVED",
+ "universalIdentifier": "78a0a1b9-7eda-544b-82a6-a2e7c6e49abc",
+ },
+ {
+ "metadataName": "fieldMetadata",
+ "reason": null,
+ "status": "ENGINE_DERIVED",
+ "universalIdentifier": "e9ecaa5c-d86b-52d9-810d-dac1049941a3",
+ },
{
"metadataName": "rolePermissionFlag",
"reason": null,
@@ -793,7 +817,7 @@ exports[`Application export - data model exports the whole application as a stab
},
],
"randomlyIdentifiedByKindAndStatus": {
- "index ENGINE_DERIVED": 8,
+ "index ENGINE_DERIVED": 10,
},
}
`;
diff --git a/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/successful-sync-application-workspace-migration.integration-spec.ts.snap b/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/successful-sync-application-workspace-migration.integration-spec.ts.snap
index 153c817f10c..fc1a0d03d48 100644
--- a/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/successful-sync-application-workspace-migration.integration-spec.ts.snap
+++ b/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/successful-sync-application-workspace-migration.integration-spec.ts.snap
@@ -735,6 +735,77 @@ exports[`syncApplication should delete old field and create equivalent one when
},
"type": "create",
},
+ {
+ "fieldIdByUniversalIdentifier": Any<Object>,
+ "flatEntity": {
+ "applicationUniversalIdentifier": Any<String>,
+ "createdAt": Any<String>,
+ "defaultValue": null,
+ "description": "Tickets tied to the Agent chat thread target",
+ "icon": "IconMessage",
+ "isActive": true,
+ "isAuditLogged": true,
+ "isLabelSyncedWithName": false,
+ "isNullable": true,
+ "isSearchable": false,
+ "isSystem": false,
+ "isSystemSideEffect": true,
+ "isUIEditable": true,
+ "isUnique": false,
+ "label": "Chats",
+ "morphId": null,
+ "name": "agentChatThreadTargets",
+ "objectMetadataUniversalIdentifier": Any<String>,
+ "options": null,
+ "overrides": null,
+ "relationTargetFieldMetadataUniversalIdentifier": Any<String>,
+ "relationTargetObjectMetadataUniversalIdentifier": Any<String>,
+ "type": "RELATION",
+ "universalIdentifier": Any<String>,
+ "universalSettings": {
+ "relationType": "ONE_TO_MANY",
+ },
+ "updatedAt": Any<String>,
+ "writability": "OPEN",
+ },
+ "id": Any<String>,
+ "metadataName": "fieldMetadata",
+ "relatedFieldId": Any<String>,
+ "relatedUniversalFlatFieldMetadata": {
+ "applicationUniversalIdentifier": Any<String>,
+ "createdAt": Any<String>,
+ "defaultValue": null,
+ "description": "AgentChatThreadTargets Ticket",
+ "icon": "IconMessage",
+ "isActive": true,
+ "isAuditLogged": true,
+ "isLabelSyncedWithName": false,
+ "isNullable": true,
+ "isSearchable": false,
+ "isSystem": false,
+ "isSystemSideEffect": true,
+ "isUIEditable": true,
+ "isUnique": false,
+ "label": "Ticket",
+ "morphId": Any<String>,
+ "name": "targetTicket",
+ "objectMetadataUniversalIdentifier": Any<String>,
+ "options": null,
+ "overrides": null,
+ "relationTargetFieldMetadataUniversalIdentifier": Any<String>,
+ "relationTargetObjectMetadataUniversalIdentifier": Any<String>,
+ "type": "MORPH_RELATION",
+ "universalIdentifier": Any<String>,
+ "universalSettings": {
+ "joinColumnName": "targetTicketId",
+ "onDelete": "SET_NULL",
+ "relationType": "MANY_TO_ONE",
+ },
+ "updatedAt": Any<String>,
+ "writability": "OPEN",
+ },
+ "type": "create",
+ },
{
"flatEntity": {
"applicationUniversalIdentifier": Any<String>,
@@ -847,6 +918,34 @@ exports[`syncApplication should delete old field and create equivalent one when
"metadataName": "index",
"type": "create",
},
+ {
+ "flatEntity": {
+ "applicationUniversalIdentifier": Any<String>,
+ "createdAt": Any<String>,
+ "indexType": "BTREE",
+ "indexWhereClause": null,
+ "isCustom": true,
+ "isSystemSideEffect": true,
+ "isUnique": false,
+ "name": "IDX_974911afcc7d3f9bbfedee071cf",
+ "objectMetadataUniversalIdentifier": Any<String>,
+ "universalFlatIndexFieldMetadatas": [
+ {
+ "createdAt": Any<String>,
+ "fieldMetadataUniversalIdentifier": Any<String>,
+ "indexMetadataUniversalIdentifier": Any<String>,
+ "order": 0,
+ "subFieldName": null,
+ "updatedAt": Any<String>,
+ },
+ ],
+ "universalIdentifier": Any<String>,
+ "updatedAt": Any<String>,
+ },
+ "id": Any<String>,
+ "metadataName": "index",
+ "type": "create",
+ },
{
"flatEntity": {
"applicationUniversalIdentifier": Any<String>,
@@ -2379,6 +2478,77 @@ exports[`syncApplication should return workspace migration actions on initial sy
},
"type": "create",
},
+ {
+ "fieldIdByUniversalIdentifier": Any<Object>,
+ "flatEntity": {
+ "applicationUniversalIdentifier": Any<String>,
+ "createdAt": Any<String>,
+ "defaultValue": null,
+ "description": "Tickets tied to the Agent chat thread target",
+ "icon": "IconMessage",
+ "isActive": true,
+ "isAuditLogged": true,
+ "isLabelSyncedWithName": false,
+ "isNullable": true,
+ "isSearchable": false,
+ "isSystem": false,
+ "isSystemSideEffect": true,
+ "isUIEditable": true,
+ "isUnique": false,
+ "label": "Chats",
+ "morphId": null,
+ "name": "agentChatThreadTargets",
+ "objectMetadataUniversalIdentifier": Any<String>,
+ "options": null,
+ "overrides": null,
+ "relationTargetFieldMetadataUniversalIdentifier": Any<String>,
+ "relationTargetObjectMetadataUniversalIdentifier": Any<String>,
+ "type": "RELATION",
+ "universalIdentifier": Any<String>,
+ "universalSettings": {
+ "relationType": "ONE_TO_MANY",
+ },
+ "updatedAt": Any<String>,
+ "writability": "OPEN",
+ },
+ "id": Any<String>,
+ "metadataName": "fieldMetadata",
+ "relatedFieldId": Any<String>,
+ "relatedUniversalFlatFieldMetadata": {
+ "applicationUniversalIdentifier": Any<String>,
+ "createdAt": Any<String>,
+ "defaultValue": null,
+ "description": "AgentChatThreadTargets Ticket",
+ "icon": "IconMessage",
+ "isActive": true,
+ "isAuditLogged": true,
+ "isLabelSyncedWithName": false,
+ "isNullable": true,
+ "isSearchable": false,
+ "isSystem": false,
+ "isSystemSideEffect": true,
+ "isUIEditable": true,
+ "isUnique": false,
+ "label": "Ticket",
+ "morphId": Any<String>,
+ "name": "targetTicket",
+ "objectMetadataUniversalIdentifier": Any<String>,
+ "options": null,
+ "overrides": null,
+ "relationTargetFieldMetadataUniversalIdentifier": Any<String>,
+ "relationTargetObjectMetadataUniversalIdentifier": Any<String>,
+ "type": "MORPH_RELATION",
+ "universalIdentifier": Any<String>,
+ "universalSettings": {
+ "joinColumnName": "targetTicketId",
+ "onDelete": "SET_NULL",
+ "relationType": "MANY_TO_ONE",
+ },
+ "updatedAt": Any<String>,
+ "writability": "OPEN",
+ },
+ "type": "create",
+ },
{
"flatEntity": {
"applicationUniversalIdentifier": Any<String>,
@@ -2491,6 +2661,34 @@ exports[`syncApplication should return workspace migration actions on initial sy
"metadataName": "index",
"type": "create",
},
+ {
+ "flatEntity": {
+ "applicationUniversalIdentifier": Any<String>,
+ "createdAt": Any<String>,
+ "indexType": "BTREE",
+ "indexWhereClause": null,
+ "isCustom": true,
+ "isSystemSideEffect": true,
+ "isUnique": false,
+ "name": "IDX_974911afcc7d3f9bbfedee071cf",
+ "objectMetadataUniversalIdentifier": Any<String>,
+ "universalFlatIndexFieldMetadatas": [
+ {
+ "createdAt": Any<String>,
+ "fieldMetadataUniversalIdentifier": Any<String>,
+ "indexMetadataUniversalIdentifier": Any<String>,
+ "order": 0,
+ "subFieldName": null,
+ "updatedAt": Any<String>,
+ },
+ ],
+ "universalIdentifier": Any<String>,
+ "updatedAt": Any<String>,
+ },
+ "id": Any<String>,
+ "metadataName": "index",
+ "type": "create",
+ },
{
"flatEntity": {
"applicationUniversalIdentifier": Any<String>,
diff --git a/packages/twenty-shared/src/metadata/__tests__/__snapshots__/standardObjectUniversalIdentifiers.test.ts.snap b/packages/twenty-shared/src/metadata/__tests__/__snapshots__/standardObjectUniversalIdentifiers.test.ts.snap
index 53e6741a18c..9432350c0e9 100644
--- a/packages/twenty-shared/src/metadata/__tests__/__snapshots__/standardObjectUniversalIdentifiers.test.ts.snap
+++ b/packages/twenty-shared/src/metadata/__tests__/__snapshots__/standardObjectUniversalIdentifiers.test.ts.snap
@@ -37,6 +37,9 @@ exports[`STANDARD_OBJECTS universal identifiers should never change without an e
"pendingQuestionMessageId": {
"universalIdentifier": "51a9b421-7d90-4a59-9712-036ea9721e65",
},
+ "recordTargets": {
+ "universalIdentifier": "5b37eceb-2992-4d27-9897-14af3e3ce9b2",
+ },
"title": {
"universalIdentifier": "9283c05e-127c-46ec-82e9-6424a7c0a2f1",
},
@@ -75,6 +78,64 @@ exports[`STANDARD_OBJECTS universal identifiers should never change without an e
},
"universalIdentifier": "fab0fff8-0c90-4116-9bb0-7dbc07392633",
},
+ "agentChatThreadTarget": {
+ "fields": {
+ "createdAt": {
+ "universalIdentifier": "0b3d45a4-422d-54fd-96bd-0d0aede26d4a",
+ },
+ "deletedAt": {
+ "universalIdentifier": "ba7caf18-b6cd-5227-ae8b-38bd4775f874",
+ },
+ "id": {
+ "universalIdentifier": "3fa2b4a3-bd88-50cb-954b-db72480f7290",
+ },
+ "targetCompany": {
+ "universalIdentifier": "b06cb6c7-6dc1-5b79-a2fc-c6abab6c1969",
+ },
+ "targetOpportunity": {
+ "universalIdentifier": "590349b5-e21b-5087-82ee-923a005c46d2",
+ },
+ "targetPerson": {
+ "universalIdentifier": "39252ea1-0323-5839-a43a-237422d75784",
+ },
+ "thread": {
+ "universalIdentifier": "54664c16-3c3d-4d5e-904c-59e1b3707cfb",
+ },
+ "updatedAt": {
+ "universalIdentifier": "dcad8174-0f81-546e-8a27-576ed432fbcd",
+ },
+ },
+ "indexes": {
+ "companyIdIndex": {
+ "universalIdentifier": "ab45593a-3614-41c8-aab1-20aa91f1095c",
+ },
+ "opportunityIdIndex": {
+ "universalIdentifier": "b68e2031-73c6-4bc4-b062-5f795539e452",
+ },
+ "personIdIndex": {
+ "universalIdentifier": "fe9c48d0-5b2a-4a51-bd47-f9205ea0c09d",
+ },
+ "threadCompanyUniqueIndex": {
+ "universalIdentifier": "d9067628-fd16-4843-955b-5fd47fea52a9",
+ },
+ "threadIdIndex": {
+ "universalIdentifier": "19291d2c-15ab-43a0-91f7-1694b34813dd",
+ },
+ "threadOpportunityUniqueIndex": {
+ "universalIdentifier": "1b9bec10-2788-40be-9435-44937b9f7018",
+ },
+ "threadPersonUniqueIndex": {
+ "universalIdentifier": "5a12050f-4de2-4076-aecc-959b863e14b2",
+ },
+ },
+ "morphIds": {
+ "targetMorphId": {
+ "morphId": "2c4cc537-39a2-4df9-81a1-dda26eb19658",
+ },
+ },
+ "universalIdentifier": "9f2a5bf4-3a57-4e61-b561-eaf5a5b86973",
+ "views": {},
+ },
"agentMessage": {
"fields": {
"agentId": {
@@ -1205,6 +1266,9 @@ exports[`STANDARD_OBJECTS universal identifiers should never change without an e
"address": {
"universalIdentifier": "20202020-c5ce-4adc-b7b6-9c0979fc55e7",
},
+ "agentChatThreadTargets": {
+ "universalIdentifier": "cfd6b104-69a2-5048-8e4d-e9fd52a1adc1",
+ },
"annualRevenue": {
"universalIdentifier": "60f533b7-2166-4071-a767-ceb0286822fd",
},
@@ -2565,6 +2629,9 @@ exports[`STANDARD_OBJECTS universal identifiers should never change without an e
},
"opportunity": {
"fields": {
+ "agentChatThreadTargets": {
+ "universalIdentifier": "33677c4d-eca9-5560-8e07-b0fae616e5fb",
+ },
"amount": {
"universalIdentifier": "20202020-583e-4642-8533-db761d5fa82f",
},
@@ -2770,6 +2837,9 @@ exports[`STANDARD_OBJECTS universal identifiers should never change without an e
},
"person": {
"fields": {
+ "agentChatThreadTargets": {
+ "universalIdentifier": "9d3f43e7-65bc-54c5-b4a1-bc0d92426b3a",
+ },
"attachments": {
"universalIdentifier": "54dd92e1-67bf-5381-86f3-c747976dcdaf",
},
diff --git a/packages/twenty-shared/src/metadata/constants/standard-object-fields.constant.ts b/packages/twenty-shared/src/metadata/constants/standard-object-fields.constant.ts
index 2a3bfee5a0b..d46024b6ed8 100644
--- a/packages/twenty-shared/src/metadata/constants/standard-object-fields.constant.ts
+++ b/packages/twenty-shared/src/metadata/constants/standard-object-fields.constant.ts
@@ -75,6 +75,45 @@ export const STANDARD_OBJECT_FIELDS = {
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.attachment,
}),
},
+ recordTargets: {
+ universalIdentifier: '5b37eceb-2992-4d27-9897-14af3e3ce9b2',
+ },
+ },
+ agentChatThreadTarget: {
+ ...buildStandardObjectBaseFields(
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.agentChatThreadTarget,
+ ),
+ thread: { universalIdentifier: '54664c16-3c3d-4d5e-904c-59e1b3707cfb' },
+ targetPerson: {
+ universalIdentifier: getSystemRelationFieldUniversalIdentifier({
+ applicationUniversalIdentifier:
+ TWENTY_STANDARD_APPLICATION_UNIVERSAL_IDENTIFIER,
+ objectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.agentChatThreadTarget,
+ relationTargetObjectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.person,
+ }),
+ },
+ targetCompany: {
+ universalIdentifier: getSystemRelationFieldUniversalIdentifier({
+ applicationUniversalIdentifier:
+ TWENTY_STANDARD_APPLICATION_UNIVERSAL_IDENTIFIER,
+ objectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.agentChatThreadTarget,
+ relationTargetObjectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company,
+ }),
+ },
+ targetOpportunity: {
+ universalIdentifier: getSystemRelationFieldUniversalIdentifier({
+ applicationUniversalIdentifier:
+ TWENTY_STANDARD_APPLICATION_UNIVERSAL_IDENTIFIER,
+ objectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.agentChatThreadTarget,
+ relationTargetObjectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.opportunity,
+ }),
+ },
},
agentTurn: {
...buildStandardObjectBaseFields(
@@ -683,6 +722,16 @@ export const STANDARD_OBJECT_FIELDS = {
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.noteTarget,
}),
},
+ agentChatThreadTargets: {
+ universalIdentifier: getSystemRelationFieldUniversalIdentifier({
+ applicationUniversalIdentifier:
+ TWENTY_STANDARD_APPLICATION_UNIVERSAL_IDENTIFIER,
+ objectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company,
+ relationTargetObjectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.agentChatThreadTarget,
+ }),
+ },
calendarEventTargets: {
universalIdentifier: getSystemRelationFieldUniversalIdentifier({
applicationUniversalIdentifier:
@@ -1095,6 +1144,16 @@ export const STANDARD_OBJECT_FIELDS = {
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.noteTarget,
}),
},
+ agentChatThreadTargets: {
+ universalIdentifier: getSystemRelationFieldUniversalIdentifier({
+ applicationUniversalIdentifier:
+ TWENTY_STANDARD_APPLICATION_UNIVERSAL_IDENTIFIER,
+ objectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.opportunity,
+ relationTargetObjectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.agentChatThreadTarget,
+ }),
+ },
calendarEventTargets: {
universalIdentifier: getSystemRelationFieldUniversalIdentifier({
applicationUniversalIdentifier:
@@ -1175,6 +1234,15 @@ export const STANDARD_OBJECT_FIELDS = {
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.noteTarget,
}),
},
+ agentChatThreadTargets: {
+ universalIdentifier: getSystemRelationFieldUniversalIdentifier({
+ applicationUniversalIdentifier:
+ TWENTY_STANDARD_APPLICATION_UNIVERSAL_IDENTIFIER,
+ objectUniversalIdentifier: STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.person,
+ relationTargetObjectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.agentChatThreadTarget,
+ }),
+ },
calendarEventTargets: {
universalIdentifier: getSystemRelationFieldUniversalIdentifier({
applicationUniversalIdentifier:
diff --git a/packages/twenty-shared/src/metadata/constants/standard-object-universal-identifiers.constant.ts b/packages/twenty-shared/src/metadata/constants/standard-object-universal-identifiers.constant.ts
index c61712d7788..6fea846eb3f 100644
--- a/packages/twenty-shared/src/metadata/constants/standard-object-universal-identifiers.constant.ts
+++ b/packages/twenty-shared/src/metadata/constants/standard-object-universal-identifiers.constant.ts
@@ -6,6 +6,7 @@
// cannot reference its sibling keys).
export const STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS = {
agentChatThread: 'fab0fff8-0c90-4116-9bb0-7dbc07392633',
+ agentChatThreadTarget: '9f2a5bf4-3a57-4e61-b561-eaf5a5b86973',
agentTurn: '63697477-8606-415e-86cb-be078d7fcf7e',
agentMessage: '62d0354c-3b99-4769-b0f5-4e2651c2ca7d',
agentMessagePart: '214bacb0-df89-494e-be42-e5b11c99cff6',
diff --git a/packages/twenty-shared/src/metadata/constants/standard-object.constant.ts b/packages/twenty-shared/src/metadata/constants/standard-object.constant.ts
index d87d5a7a38d..b455c425041 100644
--- a/packages/twenty-shared/src/metadata/constants/standard-object.constant.ts
+++ b/packages/twenty-shared/src/metadata/constants/standard-object.constant.ts
@@ -1417,6 +1417,38 @@ export const STANDARD_OBJECTS = {
},
},
},
+ agentChatThreadTarget: {
+ universalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.agentChatThreadTarget,
+ fields: STANDARD_OBJECT_FIELDS.agentChatThreadTarget,
+ morphIds: {
+ targetMorphId: { morphId: '2c4cc537-39a2-4df9-81a1-dda26eb19658' },
+ },
+ indexes: {
+ threadIdIndex: {
+ universalIdentifier: '19291d2c-15ab-43a0-91f7-1694b34813dd',
+ },
+ personIdIndex: {
+ universalIdentifier: 'fe9c48d0-5b2a-4a51-bd47-f9205ea0c09d',
+ },
+ companyIdIndex: {
+ universalIdentifier: 'ab45593a-3614-41c8-aab1-20aa91f1095c',
+ },
+ opportunityIdIndex: {
+ universalIdentifier: 'b68e2031-73c6-4bc4-b062-5f795539e452',
+ },
+ threadPersonUniqueIndex: {
+ universalIdentifier: '5a12050f-4de2-4076-aecc-959b863e14b2',
+ },
+ threadCompanyUniqueIndex: {
+ universalIdentifier: 'd9067628-fd16-4843-955b-5fd47fea52a9',
+ },
+ threadOpportunityUniqueIndex: {
+ universalIdentifier: '1b9bec10-2788-40be-9435-44937b9f7018',
+ },
+ },
+ views: {},
+ },
agentTurn: {
universalIdentifier: STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.agentTurn,
fields: STANDARD_OBJECT_FIELDS.agentTurn,