twenty-sdk 2.56.0 → 2.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,13 @@
1
1
  import { CountryCode } from 'libphonenumber-js';
2
2
 
3
+ declare const AI_CHAT_ASSISTANT_AVATAR_COLORS: readonly ["blue", "sky", "turquoise", "green", "yellow", "orange", "red", "pink", "purple", "gray"];
4
+
5
+ type AiChatAssistantAvatarColor = (typeof AI_CHAT_ASSISTANT_AVATAR_COLORS)[number];
6
+
7
+ declare const AI_CHAT_ASSISTANT_AVATAR_SHAPES: readonly ["circle", "cookie", "cloud", "clover", "flower", "burst", "pill", "arch", "gem", "hexagon"];
8
+
9
+ type AiChatAssistantAvatarShape = (typeof AI_CHAT_ASSISTANT_AVATAR_SHAPES)[number];
10
+
3
11
  type AgentResponseFieldType = 'string' | 'number' | 'boolean';
4
12
  type AgentResponseSchema = {
5
13
  type: 'object';
@@ -2372,6 +2380,21 @@ declare const modelConfigurationSchema: ZodObject<{
2372
2380
 
2373
2381
  type ModelConfiguration = output<typeof modelConfigurationSchema>;
2374
2382
 
2383
+ type ValidationRuleDatabaseEventAction = 'created' | 'updated' | 'upserted' | 'deleted' | 'destroyed' | 'restored';
2384
+
2385
+ type RecordEventTriggerManifestAction = ValidationRuleDatabaseEventAction | '*';
2386
+
2387
+ type RecordEventTriggerManifestSettings = {
2388
+ on: 'recordEvent';
2389
+ objectUniversalIdentifier?: string;
2390
+ action: RecordEventTriggerManifestAction;
2391
+ watchedFieldUniversalIdentifiers?: string[];
2392
+ condition?: string;
2393
+ batchMode?: boolean;
2394
+ };
2395
+
2396
+ type EventTriggerManifestSettings = RecordEventTriggerManifestSettings;
2397
+
2375
2398
  declare const ALLOWED_ADDRESS_SUBFIELDS: readonly ["addressStreet1", "addressStreet2", "addressCity", "addressState", "addressPostcode", "addressCountry", "addressLat", "addressLng"];
2376
2399
  type AllowedAddressSubField = (typeof ALLOWED_ADDRESS_SUBFIELDS)[number];
2377
2400
 
@@ -2400,13 +2423,6 @@ declare enum ContextStorePageType {
2400
2423
  Settings = "SETTINGS_PAGE"
2401
2424
  }
2402
2425
 
2403
- type RestrictedFieldPermissions = {
2404
- canRead?: boolean | null;
2405
- canUpdate?: boolean | null;
2406
- };
2407
-
2408
- type RestrictedFieldsPermissions = Record<string, RestrictedFieldPermissions>;
2409
-
2410
2426
  declare enum RowLevelPermissionPredicateOperand {
2411
2427
  IS = "IS",
2412
2428
  IS_NOT_NULL = "IS_NOT_NULL",
@@ -2435,6 +2451,7 @@ type RowLevelPermissionPredicateValue = string | string[] | boolean | number | R
2435
2451
  type RowLevelPermissionPredicate = {
2436
2452
  id: string;
2437
2453
  fieldMetadataId: string;
2454
+ relationFieldMetadataId?: string | null;
2438
2455
  objectMetadataId: string;
2439
2456
  operand: RowLevelPermissionPredicateOperand;
2440
2457
  value: RowLevelPermissionPredicateValue;
@@ -2464,11 +2481,13 @@ type RowLevelPermissionPredicateGroup = {
2464
2481
  };
2465
2482
 
2466
2483
  type ObjectPermissions = {
2484
+ canCreateObjectRecords: boolean;
2467
2485
  canReadObjectRecords: boolean;
2468
2486
  canUpdateObjectRecords: boolean;
2469
2487
  canSoftDeleteObjectRecords: boolean;
2470
2488
  canDestroyObjectRecords: boolean;
2471
- restrictedFields: RestrictedFieldsPermissions;
2489
+ unreadableFields: string[];
2490
+ uneditableFields: string[];
2472
2491
  rowLevelPermissionPredicates: RowLevelPermissionPredicate[];
2473
2492
  rowLevelPermissionPredicateGroups: RowLevelPermissionPredicateGroup[];
2474
2493
  };
@@ -2478,6 +2497,10 @@ interface ObjectRecord {
2478
2497
  [key: string]: any;
2479
2498
  }
2480
2499
 
2500
+ type CommandMenuCurrentView = {
2501
+ id: string;
2502
+ universalIdentifier: string | null;
2503
+ };
2481
2504
  type CommandMenuContextApi = {
2482
2505
  pageType: ContextStorePageType;
2483
2506
  isInSidePanel: boolean;
@@ -2500,6 +2523,7 @@ type CommandMenuContextApi = {
2500
2523
  objectMetadataItem: Record<string, unknown>;
2501
2524
  objectMetadataLabel: string;
2502
2525
  coreObjectName: CommandMenuCoreObjectName | null;
2526
+ currentView: CommandMenuCurrentView | null;
2503
2527
  };
2504
2528
 
2505
2529
  declare enum CommandMenuItemAvailabilityType {
@@ -2886,7 +2910,9 @@ declare enum NavigationMenuItemType {
2886
2910
  RECORD = "RECORD",
2887
2911
  PAGE_LAYOUT = "PAGE_LAYOUT",
2888
2912
  AGENT_CHAT_CHANNEL = "AGENT_CHAT_CHANNEL",
2889
- NATIVE_PAGE = "NATIVE_PAGE"
2913
+ NATIVE_PAGE = "NATIVE_PAGE",
2914
+ WORKFLOW = "WORKFLOW",
2915
+ AGENT = "AGENT"
2890
2916
  }
2891
2917
 
2892
2918
  declare enum ObjectOpenRecordIn {
@@ -3180,6 +3206,25 @@ declare enum RecordFilterGroupLogicalOperator {
3180
3206
  OR = "OR"
3181
3207
  }
3182
3208
 
3209
+ declare enum ViewFilterOperand {
3210
+ IS = "IS",
3211
+ IS_NOT_NULL = "IS_NOT_NULL",
3212
+ IS_NOT = "IS_NOT",
3213
+ LESS_THAN_OR_EQUAL = "LESS_THAN_OR_EQUAL",
3214
+ GREATER_THAN_OR_EQUAL = "GREATER_THAN_OR_EQUAL",
3215
+ IS_BEFORE = "IS_BEFORE",
3216
+ IS_AFTER = "IS_AFTER",
3217
+ CONTAINS = "CONTAINS",
3218
+ DOES_NOT_CONTAIN = "DOES_NOT_CONTAIN",
3219
+ IS_EMPTY = "IS_EMPTY",
3220
+ IS_NOT_EMPTY = "IS_NOT_EMPTY",
3221
+ IS_RELATIVE = "IS_RELATIVE",
3222
+ IS_IN_PAST = "IS_IN_PAST",
3223
+ IS_IN_FUTURE = "IS_IN_FUTURE",
3224
+ IS_TODAY = "IS_TODAY",
3225
+ VECTOR_SEARCH = "VECTOR_SEARCH"
3226
+ }
3227
+
3183
3228
  type RelationAndMorphRelationFieldMetadataType = FieldMetadataType.RELATION | FieldMetadataType.MORPH_RELATION;
3184
3229
 
3185
3230
  declare enum ViewFilterOperandDeprecated {
@@ -3200,30 +3245,13 @@ declare enum ViewFilterOperandDeprecated {
3200
3245
  IsToday = "isToday"
3201
3246
  }
3202
3247
 
3203
- declare enum ViewFilterOperand {
3204
- IS = "IS",
3205
- IS_NOT_NULL = "IS_NOT_NULL",
3206
- IS_NOT = "IS_NOT",
3207
- LESS_THAN_OR_EQUAL = "LESS_THAN_OR_EQUAL",
3208
- GREATER_THAN_OR_EQUAL = "GREATER_THAN_OR_EQUAL",
3209
- IS_BEFORE = "IS_BEFORE",
3210
- IS_AFTER = "IS_AFTER",
3211
- CONTAINS = "CONTAINS",
3212
- DOES_NOT_CONTAIN = "DOES_NOT_CONTAIN",
3213
- IS_EMPTY = "IS_EMPTY",
3214
- IS_NOT_EMPTY = "IS_NOT_EMPTY",
3215
- IS_RELATIVE = "IS_RELATIVE",
3216
- IS_IN_PAST = "IS_IN_PAST",
3217
- IS_IN_FUTURE = "IS_IN_FUTURE",
3218
- IS_TODAY = "IS_TODAY",
3219
- VECTOR_SEARCH = "VECTOR_SEARCH"
3220
- }
3221
-
3222
3248
  declare enum StepLogicalOperator {
3223
3249
  AND = "AND",
3224
3250
  OR = "OR"
3225
3251
  }
3226
3252
 
3253
+ type ValidationRuleBindings = Record<string, string>;
3254
+
3227
3255
  declare enum ViewCalendarLayout {
3228
3256
  DAY = "DAY",
3229
3257
  WEEK = "WEEK",
@@ -3335,6 +3363,7 @@ type LogicFunctionManifest = SyncableEntityOptions$1 & {
3335
3363
  description?: string;
3336
3364
  timeoutSeconds?: number;
3337
3365
  cronTriggerSettings?: CronTriggerSettings;
3366
+ eventTriggerSettings?: EventTriggerManifestSettings;
3338
3367
  databaseEventTriggerSettings?: DatabaseEventTriggerSettings;
3339
3368
  httpRouteTriggerSettings?: HttpRouteTriggerSettings;
3340
3369
  serverRouteTriggerSettings?: ServerRouteTriggerSettings;
@@ -3352,6 +3381,8 @@ type DatabaseEventTriggerSettings = {
3352
3381
  eventName: string;
3353
3382
  updatedFields?: string[];
3354
3383
  batchMode?: boolean;
3384
+ condition?: string;
3385
+ conditionBindings?: ValidationRuleBindings;
3355
3386
  };
3356
3387
  type HttpRouteTriggerSettings = {
3357
3388
  path: string;
@@ -3366,6 +3397,9 @@ type AgentTriggerManifestBase = {
3366
3397
  instructions?: string;
3367
3398
  };
3368
3399
  type AgentTriggerManifest = (AgentTriggerManifestBase & {
3400
+ type: 'EVENT';
3401
+ settings: EventTriggerManifestSettings;
3402
+ }) | (AgentTriggerManifestBase & {
3369
3403
  type: 'DATABASE_EVENT';
3370
3404
  settings: DatabaseEventTriggerSettings;
3371
3405
  }) | (AgentTriggerManifestBase & {
@@ -3377,6 +3411,8 @@ type AgentManifest = SyncableEntityOptions$1 & {
3377
3411
  name: string;
3378
3412
  label: string;
3379
3413
  icon?: string;
3414
+ avatarColor?: AiChatAssistantAvatarColor;
3415
+ avatarShape?: AiChatAssistantAvatarShape;
3380
3416
  description?: string;
3381
3417
  prompt: string;
3382
3418
  modelId?: string;
@@ -4588,11 +4624,15 @@ type McpServerManifest = SyncableEntityOptions$1 & {
4588
4624
  connectionProvider?: SyncableEntityOptions$1;
4589
4625
  };
4590
4626
 
4627
+ declare const MESSAGING_PROVIDER_CONVERSATION_STYLES: readonly ["chat", "email"];
4628
+ type MessagingProviderConversationStyle = (typeof MESSAGING_PROVIDER_CONVERSATION_STYLES)[number];
4629
+
4591
4630
  type MessagingProviderManifest = SyncableEntityOptions$1 & {
4592
4631
  name: string;
4593
4632
  displayName: string;
4594
4633
  connectionProvider: SyncableEntityOptions$1;
4595
4634
  sendMessageLogicFunction?: SyncableEntityOptions$1;
4635
+ conversationStyle?: MessagingProviderConversationStyle;
4596
4636
  };
4597
4637
 
4598
4638
  type NavigationMenuItemManifest = SyncableEntityOptions$1 & {
@@ -4609,8 +4649,8 @@ type NavigationMenuItemManifest = SyncableEntityOptions$1 & {
4609
4649
  pageLayoutUniversalIdentifier?: string;
4610
4650
  };
4611
4651
 
4612
- declare const OBJECT_PERMISSION_ACTIONS: readonly ["canReadObjectRecords", "canUpdateObjectRecords", "canSoftDeleteObjectRecords", "canDestroyObjectRecords"];
4613
- type ObjectPermissionAction = (typeof OBJECT_PERMISSION_ACTIONS)[number];
4652
+ declare const DISABLEABLE_OBJECT_PERMISSION_ACTIONS: readonly ["canReadObjectRecords", "canUpdateObjectRecords", "canSoftDeleteObjectRecords", "canDestroyObjectRecords", "canCreateObjectRecords"];
4653
+ type DisableableObjectPermissionAction = (typeof DISABLEABLE_OBJECT_PERMISSION_ACTIONS)[number];
4614
4654
 
4615
4655
  type DistributiveOmit<T, K extends PropertyKey> = T extends unknown ? Omit<T, K> : never;
4616
4656
  type ObjectFieldManifest$1<T extends FieldMetadataType = FieldMetadataType> = DistributiveOmit<FieldManifest<T>, 'objectUniversalIdentifier'>;
@@ -4627,7 +4667,7 @@ type ObjectManifest = SyncableEntityOptions$1 & {
4627
4667
  isSearchable?: boolean;
4628
4668
  isUICreatable?: boolean;
4629
4669
  isUIEditable?: boolean;
4630
- disabledObjectPermissionActions?: ObjectPermissionAction[];
4670
+ disabledObjectPermissionActions?: DisableableObjectPermissionAction[];
4631
4671
  openRecordIn?: ObjectOpenRecordIn;
4632
4672
  fields: ObjectFieldManifest$1[];
4633
4673
  labelIdentifierFieldMetadataUniversalIdentifier: string;
@@ -4863,6 +4903,7 @@ type ViewManifest = SyncableEntityOptions$1 & {
4863
4903
  openRecordIn?: ViewOpenRecordIn;
4864
4904
  mainGroupByFieldMetadataUniversalIdentifier?: string;
4865
4905
  shouldHideEmptyGroups?: boolean;
4906
+ shouldDisplayGroupsAsTabs?: boolean;
4866
4907
  groupLoadLimit?: number;
4867
4908
  anyFieldFilterValue?: string | null;
4868
4909
  kanbanColumnWidth?: number | null;
@@ -4939,7 +4980,7 @@ type InstallPayload = {
4939
4980
  };
4940
4981
  type InstallHandler = (payload: InstallPayload) => any | Promise<any>;
4941
4982
 
4942
- type PreInstallLogicFunctionConfig = Omit<LogicFunctionConfig$1, 'cronTriggerSettings' | 'databaseEventTriggerSettings' | 'httpRouteTriggerSettings' | 'toolTriggerSettings' | 'workflowActionTriggerSettings' | 'handler'> & {
4983
+ type PreInstallLogicFunctionConfig = Omit<LogicFunctionConfig$1, 'cronTriggerSettings' | 'databaseEventTriggerSettings' | 'eventTriggerSettings' | 'httpRouteTriggerSettings' | 'toolTriggerSettings' | 'workflowActionTriggerSettings' | 'handler'> & {
4943
4984
  handler: InstallHandler;
4944
4985
  shouldRunOnVersionUpgrade?: boolean;
4945
4986
  };
@@ -4953,7 +4994,7 @@ type UninstallPayload = {
4953
4994
  };
4954
4995
  type UninstallHandler = (payload: UninstallPayload) => any | Promise<any>;
4955
4996
 
4956
- type UninstallLogicFunctionConfig = Omit<LogicFunctionConfig$1, 'cronTriggerSettings' | 'databaseEventTriggerSettings' | 'httpRouteTriggerSettings' | 'toolTriggerSettings' | 'workflowActionTriggerSettings' | 'handler'> & {
4997
+ type UninstallLogicFunctionConfig = Omit<LogicFunctionConfig$1, 'cronTriggerSettings' | 'databaseEventTriggerSettings' | 'eventTriggerSettings' | 'httpRouteTriggerSettings' | 'toolTriggerSettings' | 'workflowActionTriggerSettings' | 'handler'> & {
4957
4998
  handler: UninstallHandler;
4958
4999
  };
4959
5000
 
@@ -4979,7 +5020,7 @@ type UserHealthCheckHandler = (parameters: {
4979
5020
  userWorkspaceId: string;
4980
5021
  }) => ReturnType<HealthCheckHandler>;
4981
5022
 
4982
- type HealthCheckLogicFunctionConfigBase = Omit<LogicFunctionConfig$1, 'cronTriggerSettings' | 'databaseEventTriggerSettings' | 'httpRouteTriggerSettings' | 'toolTriggerSettings' | 'workflowActionTriggerSettings' | 'serverRouteTriggerSettings' | 'handler'>;
5023
+ type HealthCheckLogicFunctionConfigBase = Omit<LogicFunctionConfig$1, 'cronTriggerSettings' | 'databaseEventTriggerSettings' | 'eventTriggerSettings' | 'httpRouteTriggerSettings' | 'toolTriggerSettings' | 'workflowActionTriggerSettings' | 'serverRouteTriggerSettings' | 'handler'>;
4983
5024
  type WorkspaceHealthCheckLogicFunctionConfig = HealthCheckLogicFunctionConfigBase & {
4984
5025
  runOnUserPreferences?: false;
4985
5026
  handler: HealthCheckHandler;
@@ -5060,6 +5101,7 @@ type RuleExpression = {
5060
5101
  type RuleExpressionOperand = RuleExpression | string | number | boolean;
5061
5102
  declare const ruleExpression: {
5062
5103
  field: (path: string) => RuleExpression;
5104
+ previous: (path: string) => RuleExpression;
5063
5105
  now: RuleExpression;
5064
5106
  and: (...operands: RuleExpressionOperand[]) => RuleExpression;
5065
5107
  or: (...operands: RuleExpressionOperand[]) => RuleExpression;
@@ -5080,6 +5122,8 @@ declare const ruleExpression: {
5080
5122
  isNonEmptyString: (value: RuleExpressionOperand) => RuleExpression;
5081
5123
  includes: (container: RuleExpressionOperand, value: RuleExpressionOperand) => RuleExpression;
5082
5124
  arrayLength: (value: RuleExpressionOperand) => RuleExpression;
5125
+ daysSince: (value: RuleExpressionOperand) => RuleExpression;
5126
+ isInRelativeDateRange: (value: RuleExpressionOperand, direction: RuleExpressionOperand, amount: RuleExpressionOperand, unit: RuleExpressionOperand) => RuleExpression;
5083
5127
  };
5084
5128
 
5085
5129
  type ValidationRuleConfig = Omit<ValidationRuleManifest, 'expression'> & {
@@ -5106,6 +5150,7 @@ declare const canImpersonate: CommandMenuContextApi["canImpersonate"];
5106
5150
  declare const canAccessFullAdminPanel: CommandMenuContextApi["canAccessFullAdminPanel"];
5107
5151
  declare const objectMetadataItem: CommandMenuContextApi["objectMetadataItem"];
5108
5152
  declare const objectMetadataLabel: CommandMenuContextApi["objectMetadataLabel"];
5153
+ declare const currentView: CommandMenuContextApi["currentView"];
5109
5154
  declare const isDefined: (value: unknown) => boolean;
5110
5155
  declare const isNonEmptyString: (value: unknown) => boolean;
5111
5156
  declare const includes: (array: unknown, value: unknown) => boolean;
@@ -5306,10 +5351,10 @@ declare const STANDARD_OBJECTS: {
5306
5351
  targetDashboard: {
5307
5352
  universalIdentifier: string;
5308
5353
  };
5309
- targetWorkflow: {
5354
+ targetAgentChatThread: {
5310
5355
  universalIdentifier: string;
5311
5356
  };
5312
- targetAgentChatThread: {
5357
+ targetMessage: {
5313
5358
  universalIdentifier: string;
5314
5359
  };
5315
5360
  createdAt: {
@@ -5361,17 +5406,17 @@ declare const STANDARD_OBJECTS: {
5361
5406
  readonly dashboardIdIndex: {
5362
5407
  readonly universalIdentifier: "c10eba2d-ff1a-4eab-9285-50481c12a003";
5363
5408
  };
5364
- readonly workflowIdIndex: {
5365
- readonly universalIdentifier: "fadeab4b-79ee-4173-af79-72c51fbad888";
5366
- };
5367
5409
  readonly agentChatThreadIdIndex: {
5368
5410
  readonly universalIdentifier: "69857371-6ff9-48fa-a9de-db4f71593431";
5369
5411
  };
5412
+ readonly messageIdIndex: {
5413
+ readonly universalIdentifier: "83c77988-2dc4-4575-bac5-f0f50c05568e";
5414
+ };
5370
5415
  };
5371
5416
  readonly views: {
5372
5417
  readonly allAttachments: {
5373
5418
  universalIdentifier: string;
5374
- viewFields: Record<"createdAt" | "createdBy" | "file" | "name" | "targetCompany" | "targetDashboard" | "targetNote" | "targetOpportunity" | "targetPerson" | "targetTask" | "targetWorkflow", {
5419
+ viewFields: Record<"createdAt" | "createdBy" | "file" | "name" | "targetCompany" | "targetDashboard" | "targetNote" | "targetOpportunity" | "targetPerson" | "targetTask", {
5375
5420
  universalIdentifier: string;
5376
5421
  }>;
5377
5422
  };
@@ -6661,6 +6706,9 @@ declare const STANDARD_OBJECTS: {
6661
6706
  isDraft: {
6662
6707
  universalIdentifier: string;
6663
6708
  };
6709
+ attachments: {
6710
+ universalIdentifier: string;
6711
+ };
6664
6712
  createdAt: {
6665
6713
  universalIdentifier: string;
6666
6714
  };
@@ -7139,6 +7187,9 @@ declare const STANDARD_OBJECTS: {
7139
7187
  readonly accessGroup: {
7140
7188
  readonly universalIdentifier: "47f4ed44-4312-467f-b6f5-787f91037a1d";
7141
7189
  readonly fields: {
7190
+ objectMetadataId: {
7191
+ universalIdentifier: string;
7192
+ };
7142
7193
  roleId: {
7143
7194
  universalIdentifier: string;
7144
7195
  };
@@ -7183,6 +7234,9 @@ declare const STANDARD_OBJECTS: {
7183
7234
  readonly groupHashUniqueIndex: {
7184
7235
  readonly universalIdentifier: "dcb0d254-43ae-442e-9223-8ac052eddb28";
7185
7236
  };
7237
+ readonly objectMetadataIdIndex: {
7238
+ readonly universalIdentifier: "60e48c2a-a3db-4f11-b25b-49c7e8a385bc";
7239
+ };
7186
7240
  };
7187
7241
  readonly views: {};
7188
7242
  };
@@ -7562,9 +7616,6 @@ declare const STANDARD_OBJECTS: {
7562
7616
  targetNote: {
7563
7617
  universalIdentifier: string;
7564
7618
  };
7565
- targetWorkflow: {
7566
- universalIdentifier: string;
7567
- };
7568
7619
  targetWorkflowVersion: {
7569
7620
  universalIdentifier: string;
7570
7621
  };
@@ -7638,9 +7689,6 @@ declare const STANDARD_OBJECTS: {
7638
7689
  readonly taskIdIndex: {
7639
7690
  readonly universalIdentifier: "609cf622-86ef-48d1-812b-e1cab610a46c";
7640
7691
  };
7641
- readonly workflowIdIndex: {
7642
- readonly universalIdentifier: "d6059ec2-92b0-4cfc-9fd8-78050f03108f";
7643
- };
7644
7692
  readonly workflowVersionIdIndex: {
7645
7693
  readonly universalIdentifier: "d94329b3-5dc8-4141-ae28-31afe28f7135";
7646
7694
  };
@@ -7663,136 +7711,7 @@ declare const STANDARD_OBJECTS: {
7663
7711
  readonly views: {
7664
7712
  readonly allTimelineActivities: {
7665
7713
  universalIdentifier: string;
7666
- viewFields: Record<"happensAt" | "linkedRecordCachedName" | "targetCompany" | "targetDashboard" | "targetNote" | "targetOpportunity" | "targetPerson" | "targetTask" | "targetWorkflow" | "targetWorkflowRun" | "targetWorkflowVersion" | "workspaceMember", {
7667
- universalIdentifier: string;
7668
- }>;
7669
- };
7670
- };
7671
- };
7672
- readonly workflow: {
7673
- readonly universalIdentifier: "20202020-62be-406c-b9ca-8caa50d51392";
7674
- readonly fields: {
7675
- name: {
7676
- universalIdentifier: string;
7677
- };
7678
- lastPublishedVersionId: {
7679
- universalIdentifier: string;
7680
- };
7681
- coreWorkflowId: {
7682
- universalIdentifier: string;
7683
- };
7684
- statuses: {
7685
- universalIdentifier: string;
7686
- };
7687
- versions: {
7688
- universalIdentifier: string;
7689
- };
7690
- runs: {
7691
- universalIdentifier: string;
7692
- };
7693
- automatedTriggers: {
7694
- universalIdentifier: string;
7695
- };
7696
- timelineActivities: {
7697
- universalIdentifier: string;
7698
- };
7699
- attachments: {
7700
- universalIdentifier: string;
7701
- };
7702
- createdAt: {
7703
- universalIdentifier: string;
7704
- };
7705
- createdBy: {
7706
- universalIdentifier: string;
7707
- };
7708
- deletedAt: {
7709
- universalIdentifier: string;
7710
- };
7711
- id: {
7712
- universalIdentifier: string;
7713
- };
7714
- position: {
7715
- universalIdentifier: string;
7716
- };
7717
- searchVector: {
7718
- universalIdentifier: string;
7719
- };
7720
- updatedAt: {
7721
- universalIdentifier: string;
7722
- };
7723
- updatedBy: {
7724
- universalIdentifier: string;
7725
- };
7726
- };
7727
- readonly indexes: {
7728
- readonly searchVectorGinIndex: {
7729
- readonly universalIdentifier: "c7e64c55-eb0c-4b93-b076-5cfcf2e2e042";
7730
- };
7731
- };
7732
- readonly views: {
7733
- readonly allWorkflows: {
7734
- universalIdentifier: string;
7735
- viewFields: Record<"createdBy" | "name" | "runs" | "statuses" | "updatedAt" | "versions", {
7736
- universalIdentifier: string;
7737
- }>;
7738
- };
7739
- };
7740
- };
7741
- readonly workflowAutomatedTrigger: {
7742
- readonly universalIdentifier: "20202020-3319-4234-a34c-7f3b9d2e4d1f";
7743
- readonly fields: {
7744
- type: {
7745
- universalIdentifier: string;
7746
- };
7747
- settings: {
7748
- universalIdentifier: string;
7749
- };
7750
- workflow: {
7751
- universalIdentifier: string;
7752
- };
7753
- createdAt: {
7754
- universalIdentifier: string;
7755
- };
7756
- createdBy: {
7757
- universalIdentifier: string;
7758
- };
7759
- deletedAt: {
7760
- universalIdentifier: string;
7761
- };
7762
- id: {
7763
- universalIdentifier: string;
7764
- };
7765
- position: {
7766
- universalIdentifier: string;
7767
- };
7768
- searchVector: {
7769
- universalIdentifier: string;
7770
- };
7771
- updatedAt: {
7772
- universalIdentifier: string;
7773
- };
7774
- updatedBy: {
7775
- universalIdentifier: string;
7776
- };
7777
- };
7778
- readonly indexes: {
7779
- readonly workflowIdIndex: {
7780
- readonly universalIdentifier: "7331ff89-a3f9-4ac0-9fa9-0de5663ae7b2";
7781
- };
7782
- };
7783
- readonly views: {
7784
- readonly allWorkflowAutomatedTriggers: {
7785
- universalIdentifier: string;
7786
- viewFields: Record<"createdAt" | "type" | "workflow", {
7787
- universalIdentifier: string;
7788
- }>;
7789
- };
7790
- readonly workflowAutomatedTriggerRecordPageFields: {
7791
- universalIdentifier: string;
7792
- viewFields: Record<"createdAt" | "createdBy" | "type" | "workflow", {
7793
- universalIdentifier: string;
7794
- }>;
7795
- viewFieldGroups: Record<"general" | "system", {
7714
+ viewFields: Record<"happensAt" | "linkedRecordCachedName" | "targetCompany" | "targetDashboard" | "targetNote" | "targetOpportunity" | "targetPerson" | "targetTask" | "targetWorkflowRun" | "targetWorkflowVersion" | "workspaceMember", {
7796
7715
  universalIdentifier: string;
7797
7716
  }>;
7798
7717
  };
@@ -7807,9 +7726,6 @@ declare const STANDARD_OBJECTS: {
7807
7726
  workflowVersion: {
7808
7727
  universalIdentifier: string;
7809
7728
  };
7810
- workflow: {
7811
- universalIdentifier: string;
7812
- };
7813
7729
  enqueuedAt: {
7814
7730
  universalIdentifier: string;
7815
7731
  };
@@ -7866,8 +7782,8 @@ declare const STANDARD_OBJECTS: {
7866
7782
  readonly workflowVersionIdIndex: {
7867
7783
  readonly universalIdentifier: "8183c8d2-9114-4b6e-8c5d-12a3b14a5a14";
7868
7784
  };
7869
- readonly workflowIdIndex: {
7870
- readonly universalIdentifier: "9294d9e3-0225-4c7f-9d6e-23b4c25b6b25";
7785
+ readonly coreWorkflowIdCreatedAtIndex: {
7786
+ readonly universalIdentifier: "5f16fa40-7dd4-4a30-8331-9ad4a106f6be";
7871
7787
  };
7872
7788
  readonly searchVectorGinIndex: {
7873
7789
  readonly universalIdentifier: "e0ac5ad2-d0c8-4f72-b710-8e53b9dc18d9";
@@ -7876,13 +7792,13 @@ declare const STANDARD_OBJECTS: {
7876
7792
  readonly views: {
7877
7793
  readonly allWorkflowRuns: {
7878
7794
  universalIdentifier: string;
7879
- viewFields: Record<"name" | "status" | "workflow", {
7795
+ viewFields: Record<"coreWorkflowId" | "name" | "status", {
7880
7796
  universalIdentifier: string;
7881
7797
  }>;
7882
7798
  };
7883
7799
  readonly workflowRunRecordPageFields: {
7884
7800
  universalIdentifier: string;
7885
- viewFields: Record<"createdAt" | "createdBy" | "endedAt" | "enqueuedAt" | "startedAt" | "state" | "status" | "timelineActivities" | "updatedAt" | "updatedBy" | "workflow" | "workflowVersion", {
7801
+ viewFields: Record<"coreWorkflowId" | "createdAt" | "createdBy" | "endedAt" | "enqueuedAt" | "startedAt" | "state" | "status" | "timelineActivities" | "updatedAt" | "updatedBy" | "workflowVersion", {
7886
7802
  universalIdentifier: string;
7887
7803
  }>;
7888
7804
  viewFieldGroups: Record<"general" | "system", {
@@ -7897,9 +7813,6 @@ declare const STANDARD_OBJECTS: {
7897
7813
  name: {
7898
7814
  universalIdentifier: string;
7899
7815
  };
7900
- workflow: {
7901
- universalIdentifier: string;
7902
- };
7903
7816
  trigger: {
7904
7817
  universalIdentifier: string;
7905
7818
  };
@@ -7944,9 +7857,6 @@ declare const STANDARD_OBJECTS: {
7944
7857
  };
7945
7858
  };
7946
7859
  readonly indexes: {
7947
- readonly workflowIdIndex: {
7948
- readonly universalIdentifier: "8138c3b3-0b14-4ee1-be0e-debdde6b3219";
7949
- };
7950
7860
  readonly searchVectorGinIndex: {
7951
7861
  readonly universalIdentifier: "6f3a65eb-2aee-4108-b8a0-c62da419d1dc";
7952
7862
  };
@@ -7954,13 +7864,13 @@ declare const STANDARD_OBJECTS: {
7954
7864
  readonly views: {
7955
7865
  readonly allWorkflowVersions: {
7956
7866
  universalIdentifier: string;
7957
- viewFields: Record<"name" | "runs" | "status" | "updatedAt" | "workflow", {
7867
+ viewFields: Record<"name" | "runs" | "status" | "updatedAt", {
7958
7868
  universalIdentifier: string;
7959
7869
  }>;
7960
7870
  };
7961
7871
  readonly workflowVersionRecordPageFields: {
7962
7872
  universalIdentifier: string;
7963
- viewFields: Record<"createdAt" | "createdBy" | "runs" | "status" | "steps" | "timelineActivities" | "trigger" | "updatedAt" | "updatedBy" | "workflow", {
7873
+ viewFields: Record<"createdAt" | "createdBy" | "runs" | "status" | "steps" | "timelineActivities" | "trigger" | "updatedAt" | "updatedBy", {
7964
7874
  universalIdentifier: string;
7965
7875
  }>;
7966
7876
  viewFieldGroups: Record<"general" | "system", {
@@ -9087,19 +8997,6 @@ declare const STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS: {
9087
8997
  };
9088
8998
  };
9089
8999
  };
9090
- readonly workflowRecordPage: {
9091
- universalIdentifier: string;
9092
- tabs: {
9093
- readonly flow: {
9094
- universalIdentifier: string;
9095
- widgets: {
9096
- readonly workflow: {
9097
- universalIdentifier: string;
9098
- };
9099
- };
9100
- };
9101
- };
9102
- };
9103
9000
  readonly workflowVersionRecordPage: {
9104
9001
  universalIdentifier: string;
9105
9002
  tabs: {
@@ -9109,9 +9006,6 @@ declare const STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS: {
9109
9006
  readonly fields: {
9110
9007
  universalIdentifier: string;
9111
9008
  };
9112
- readonly workflow: {
9113
- universalIdentifier: string;
9114
- };
9115
9009
  };
9116
9010
  };
9117
9011
  readonly flow: {
@@ -9133,9 +9027,6 @@ declare const STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS: {
9133
9027
  readonly fields: {
9134
9028
  universalIdentifier: string;
9135
9029
  };
9136
- readonly workflow: {
9137
- universalIdentifier: string;
9138
- };
9139
9030
  };
9140
9031
  };
9141
9032
  readonly flow: {
@@ -9367,27 +9258,6 @@ declare const STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS: {
9367
9258
  };
9368
9259
  };
9369
9260
  };
9370
- readonly workflowAutomatedTriggerRecordPage: {
9371
- universalIdentifier: string;
9372
- tabs: {
9373
- readonly home: {
9374
- universalIdentifier: string;
9375
- widgets: {
9376
- readonly fields: {
9377
- universalIdentifier: string;
9378
- };
9379
- };
9380
- };
9381
- readonly timeline: {
9382
- universalIdentifier: string;
9383
- widgets: {
9384
- readonly timeline: {
9385
- universalIdentifier: string;
9386
- };
9387
- };
9388
- };
9389
- };
9390
- };
9391
9261
  readonly messageRecordPage: {
9392
9262
  universalIdentifier: string;
9393
9263
  tabs: {
@@ -9535,5 +9405,5 @@ declare const defineViewField: DefineEntity<StandaloneViewFieldManifest$1>;
9535
9405
 
9536
9406
  declare const defineWorkflow: DefineEntity<WorkflowManifest$1>;
9537
9407
 
9538
- export { AggregateOperations, ApplicationHealthStatus, CommandMenuItemAvailabilityType, DateDisplayFormat, FieldMetadataSettingsOnClickAction, FieldMetadataType as FieldType, HTTPMethod, IndexType, NavigationMenuItemType, NumberDataType, ObjectOpenRecordIn, ObjectRecordBaseEvent, ObjectRecordCreateEvent, ObjectRecordDeleteEvent, ObjectRecordDestroyEvent, ObjectRecordGroupByDateGranularity, ObjectRecordRestoreEvent, ObjectRecordUpdateEvent, ObjectRecordUpsertEvent, RelationOnDeleteAction as OnDeleteAction, PageLayoutTabLayoutMode, PageLayoutType, PageLayoutWidgetVerticalListHeightBehavior, RelationType, RowLevelPermissionPredicateGroupLogicalOperator, RowLevelPermissionPredicateOperand, STANDARD_OBJECTS as STANDARD_OBJECT, STANDARD_OBJECTS as STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS, STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS as STANDARD_PAGE_LAYOUT, STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS, SYSTEM_VIEW_KEYS, SystemPermissionFlag, ViewCalendarLayout, ViewFilterGroupLogicalOperator, ViewFilterOperand, ViewKey, ViewOpenRecordIn, ViewSortDirection, ViewType, ViewVisibility, WidgetType, canAccessFullAdminPanel, canImpersonate, createValidationResult, defineAgent, defineApplication, defineApplicationRole, defineCommandMenuItem, defineConnectionProvider, defineField, defineFrontComponent, defineHealthCheck, defineIndex, defineLogicFunction, defineMcpServer, defineMessagingProvider, defineNavigationMenuItem, defineObject, definePageLayout, definePageLayoutTab, definePageLayoutWidget, definePermissionFlag, definePostInstallLogicFunction, definePreInstallLogicFunction, defineRelatedRecordPath, defineRole, defineSettingsFrontComponent, defineSettingsMenuItem, defineSkill, defineTimelineActivityType, defineUninstallLogicFunction, defineValidationRule, defineView, defineViewField, defineWorkflow, every, everyDefined, everyEquals, favoriteRecordIds, featureFlags, getFieldUniversalIdentifier, getSystemPageLayoutTabUniversalIdentifier, getSystemRecordPageLayoutUniversalIdentifier, getSystemRelationFieldUniversalIdentifier, getSystemViewFieldUniversalIdentifier, getSystemViewUniversalIdentifier, hasAnySoftDeleteFilterOnView, includes, includesEvery, isDashboardPageLayoutInEditMode, isDefined, isInSidePanel, isLayoutCustomizationModeEnabled, isNonEmptyString, isSelectAll, none, noneDefined, noneEquals, numberOfSelectedRecords, objectMetadataItem, objectMetadataLabel, objectPermissions, pageType, ruleExpression, selectedRecords, some, someDefined, someEquals, someNonEmptyString, targetObjectReadPermissions, targetObjectWritePermissions, validateFields };
9408
+ export { AggregateOperations, ApplicationHealthStatus, CommandMenuItemAvailabilityType, DateDisplayFormat, FieldMetadataSettingsOnClickAction, FieldMetadataType as FieldType, HTTPMethod, IndexType, NavigationMenuItemType, NumberDataType, ObjectOpenRecordIn, ObjectRecordBaseEvent, ObjectRecordCreateEvent, ObjectRecordDeleteEvent, ObjectRecordDestroyEvent, ObjectRecordGroupByDateGranularity, ObjectRecordRestoreEvent, ObjectRecordUpdateEvent, ObjectRecordUpsertEvent, RelationOnDeleteAction as OnDeleteAction, PageLayoutTabLayoutMode, PageLayoutType, PageLayoutWidgetVerticalListHeightBehavior, RecordFilterGroupLogicalOperator, RelationType, RowLevelPermissionPredicateGroupLogicalOperator, RowLevelPermissionPredicateOperand, STANDARD_OBJECTS as STANDARD_OBJECT, STANDARD_OBJECTS as STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS, STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS as STANDARD_PAGE_LAYOUT, STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS, SYSTEM_VIEW_KEYS, StepLogicalOperator, SystemPermissionFlag, ViewCalendarLayout, ViewFilterGroupLogicalOperator, ViewFilterOperand, ViewFilterOperandDeprecated, ViewKey, ViewOpenRecordIn, ViewSortDirection, ViewType, ViewVisibility, WidgetType, canAccessFullAdminPanel, canImpersonate, createValidationResult, currentView, defineAgent, defineApplication, defineApplicationRole, defineCommandMenuItem, defineConnectionProvider, defineField, defineFrontComponent, defineHealthCheck, defineIndex, defineLogicFunction, defineMcpServer, defineMessagingProvider, defineNavigationMenuItem, defineObject, definePageLayout, definePageLayoutTab, definePageLayoutWidget, definePermissionFlag, definePostInstallLogicFunction, definePreInstallLogicFunction, defineRelatedRecordPath, defineRole, defineSettingsFrontComponent, defineSettingsMenuItem, defineSkill, defineTimelineActivityType, defineUninstallLogicFunction, defineValidationRule, defineView, defineViewField, defineWorkflow, every, everyDefined, everyEquals, favoriteRecordIds, featureFlags, getFieldUniversalIdentifier, getSystemPageLayoutTabUniversalIdentifier, getSystemRecordPageLayoutUniversalIdentifier, getSystemRelationFieldUniversalIdentifier, getSystemViewFieldUniversalIdentifier, getSystemViewUniversalIdentifier, hasAnySoftDeleteFilterOnView, includes, includesEvery, isDashboardPageLayoutInEditMode, isDefined, isInSidePanel, isLayoutCustomizationModeEnabled, isNonEmptyString, isSelectAll, none, noneDefined, noneEquals, numberOfSelectedRecords, objectMetadataItem, objectMetadataLabel, objectPermissions, pageType, ruleExpression, selectedRecords, some, someDefined, someEquals, someNonEmptyString, targetObjectReadPermissions, targetObjectWritePermissions, validateFields };
9539
9409
  export type { ActorMetadata as ActorField, AddressMetadata as AddressField, ApplicationConfig, ApplicationHealthCheckAction, ApplicationHealthCheckResult, CommandMenuItemConfig, CommandMenuItemManifest, ConnectionProviderScope, CronPayload, CurrencyMetadata as CurrencyField, DatabaseEventBatchPayload, DatabaseEventPayload, DefinableEntity, DefineEntity, EmailsMetadata as EmailsField, FrontComponentConfig, FrontComponentType, FullNameMetadata as FullNameField, HealthCheckHandler, HealthCheckLogicFunctionConfig, IndexConfig, IndexFieldManifest, IndexManifest, InputJsonSchema, InstallHandler, InstallPayload, LinksMetadata as LinksField, LogicFunctionConfig, LogicFunctionHandler, ObjectRecordEvent, PageLayoutConfig, PageLayoutManifest, PageLayoutTabConfig, PageLayoutTabManifest, PageLayoutWidgetCanvasPosition, PageLayoutWidgetConditionalDisplay, PageLayoutWidgetGridPosition, PageLayoutWidgetManifest, PageLayoutWidgetPosition, PageLayoutWidgetUniversalConfiguration, PageLayoutWidgetVerticalListPosition, PermissionFlagConfig, PermissionFlagManifest, PermissionFlagPermissionType, PhonesMetadata as PhonesField, RichTextMetadata as RichTextField, LogicFunctionEvent as RoutePayload, RowLevelPermissionPredicateGroupManifest, RowLevelPermissionPredicateManifest, RuleExpression, RuleExpressionOperand, ServerRouteDispatchResult, ServerRouteResolverResult, SettingsFrontComponentConfig, SettingsMenuItemConfig, SettingsMenuItemManifest, SettingsMenuItemScope, StandalonePageLayoutWidgetManifest, StandaloneViewFieldManifest, SyncableEntityOptions, SystemViewKey, TimelineActivityTypeConfig, TimelineActivityTypeManifest, TwentyRecord, UninstallHandler, UninstallPayload, UserHealthCheckHandler, ValidationResult, ValidationRuleConfig, ValidationRuleManifest, ViewConfig, ViewFieldGroupManifest, ViewFieldManifest, ViewFilterGroupManifest, ViewFilterManifest, ViewGroupManifest, ViewManifestFilterValue, ViewSortManifest, WorkflowManifest };