twenty-sdk 2.55.0 → 2.56.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.
@@ -20,278 +20,6 @@ type AgentJsonResponseFormat = {
20
20
  };
21
21
  type AgentResponseFormat = AgentTextResponseFormat | AgentJsonResponseFormat;
22
22
 
23
- type ModelConfiguration = {
24
- webSearch?: {
25
- enabled: boolean;
26
- configuration?: Record<string, unknown>;
27
- };
28
- twitterSearch?: {
29
- enabled: boolean;
30
- configuration?: Record<string, unknown>;
31
- };
32
- };
33
-
34
- declare const ALLOWED_ADDRESS_SUBFIELDS: readonly ["addressStreet1", "addressStreet2", "addressCity", "addressState", "addressPostcode", "addressCountry", "addressLat", "addressLng"];
35
- type AllowedAddressSubField = (typeof ALLOWED_ADDRESS_SUBFIELDS)[number];
36
-
37
- declare enum AggregateOperations {
38
- MIN = "MIN",
39
- MAX = "MAX",
40
- AVG = "AVG",
41
- SUM = "SUM",
42
- COUNT = "COUNT",
43
- COUNT_UNIQUE_VALUES = "COUNT_UNIQUE_VALUES",
44
- COUNT_EMPTY = "COUNT_EMPTY",
45
- COUNT_NOT_EMPTY = "COUNT_NOT_EMPTY",
46
- COUNT_TRUE = "COUNT_TRUE",
47
- COUNT_FALSE = "COUNT_FALSE",
48
- PERCENTAGE_EMPTY = "PERCENTAGE_EMPTY",
49
- PERCENTAGE_NOT_EMPTY = "PERCENTAGE_NOT_EMPTY"
50
- }
51
-
52
- declare enum ContextStorePageType {
53
- Index = "INDEX_PAGE",
54
- Record = "RECORD_PAGE",
55
- Standalone = "STANDALONE_PAGE",
56
- Settings = "SETTINGS_PAGE"
57
- }
58
-
59
- type RestrictedFieldPermissions = {
60
- canRead?: boolean | null;
61
- canUpdate?: boolean | null;
62
- };
63
-
64
- type RestrictedFieldsPermissions = Record<string, RestrictedFieldPermissions>;
65
-
66
- declare enum RowLevelPermissionPredicateOperand {
67
- IS = "IS",
68
- IS_NOT_NULL = "IS_NOT_NULL",
69
- IS_NOT = "IS_NOT",
70
- LESS_THAN_OR_EQUAL = "LESS_THAN_OR_EQUAL",
71
- GREATER_THAN_OR_EQUAL = "GREATER_THAN_OR_EQUAL",
72
- IS_BEFORE = "IS_BEFORE",
73
- IS_AFTER = "IS_AFTER",
74
- CONTAINS = "CONTAINS",
75
- DOES_NOT_CONTAIN = "DOES_NOT_CONTAIN",
76
- IS_EMPTY = "IS_EMPTY",
77
- IS_NOT_EMPTY = "IS_NOT_EMPTY",
78
- IS_RELATIVE = "IS_RELATIVE",
79
- IS_IN_PAST = "IS_IN_PAST",
80
- IS_IN_FUTURE = "IS_IN_FUTURE",
81
- IS_TODAY = "IS_TODAY",
82
- VECTOR_SEARCH = "VECTOR_SEARCH"
83
- }
84
-
85
- type RelationPredicateValue = {
86
- isCurrentWorkspaceMemberSelected?: boolean;
87
- selectedRecordIds: string[];
88
- };
89
- type RowLevelPermissionPredicateValue = string | string[] | boolean | number | RelationPredicateValue | Record<string, unknown> | null;
90
-
91
- type RowLevelPermissionPredicate = {
92
- id: string;
93
- fieldMetadataId: string;
94
- objectMetadataId: string;
95
- operand: RowLevelPermissionPredicateOperand;
96
- value: RowLevelPermissionPredicateValue;
97
- subFieldName: string | null;
98
- rowLevelPermissionPredicateGroupId: string | null;
99
- workspaceMemberFieldMetadataId: string | null;
100
- workspaceMemberSubFieldName: string | null;
101
- roleId: string;
102
- };
103
-
104
- declare enum RowLevelPermissionPredicateGroupLogicalOperator {
105
- AND = "AND",
106
- OR = "OR"
107
- }
108
-
109
- type RowLevelPermissionPredicateGroup = {
110
- id: string;
111
- logicalOperator: RowLevelPermissionPredicateGroupLogicalOperator;
112
- objectMetadataId: string;
113
- parentRowLevelPermissionPredicateGroupId: string | null;
114
- positionInRowLevelPermissionPredicateGroup: number | null;
115
- roleId: string;
116
- };
117
-
118
- type ObjectPermissions = {
119
- canReadObjectRecords: boolean;
120
- canUpdateObjectRecords: boolean;
121
- canSoftDeleteObjectRecords: boolean;
122
- canDestroyObjectRecords: boolean;
123
- restrictedFields: RestrictedFieldsPermissions;
124
- rowLevelPermissionPredicates: RowLevelPermissionPredicate[];
125
- rowLevelPermissionPredicateGroups: RowLevelPermissionPredicateGroup[];
126
- };
127
-
128
- interface ObjectRecord {
129
- id: string;
130
- [key: string]: any;
131
- }
132
-
133
- type CommandMenuContextApi = {
134
- pageType: ContextStorePageType;
135
- isInSidePanel: boolean;
136
- isDashboardPageLayoutInEditMode: boolean;
137
- isLayoutCustomizationModeEnabled: boolean;
138
- favoriteRecordIds: string[];
139
- isSelectAll: boolean;
140
- hasAnySoftDeleteFilterOnView: boolean;
141
- numberOfSelectedRecords: number;
142
- objectPermissions: ObjectPermissions & {
143
- objectMetadataId: string;
144
- };
145
- selectedRecords: ObjectRecord[];
146
- featureFlags: Record<string, boolean>;
147
- permissionFlags: Record<string, boolean>;
148
- targetObjectReadPermissions: Record<string, boolean>;
149
- targetObjectWritePermissions: Record<string, boolean>;
150
- canImpersonate: boolean;
151
- canAccessFullAdminPanel: boolean;
152
- objectMetadataItem: Record<string, unknown>;
153
- objectMetadataLabel: string;
154
- };
155
-
156
- declare enum CommandMenuItemAvailabilityType {
157
- GLOBAL = "GLOBAL",
158
- GLOBAL_OBJECT_CONTEXT = "GLOBAL_OBJECT_CONTEXT",
159
- RECORD_SELECTION = "RECORD_SELECTION",
160
- FALLBACK = "FALLBACK"
161
- }
162
-
163
- declare enum FieldMetadataType {
164
- ACTOR = "ACTOR",
165
- ADDRESS = "ADDRESS",
166
- ARRAY = "ARRAY",
167
- BOOLEAN = "BOOLEAN",
168
- CURRENCY = "CURRENCY",
169
- DATE = "DATE",
170
- DATE_TIME = "DATE_TIME",
171
- EMAILS = "EMAILS",
172
- FILES = "FILES",
173
- FULL_NAME = "FULL_NAME",
174
- LINKS = "LINKS",
175
- MORPH_RELATION = "MORPH_RELATION",
176
- MULTI_SELECT = "MULTI_SELECT",
177
- NUMBER = "NUMBER",
178
- NUMERIC = "NUMERIC",
179
- PHONES = "PHONES",
180
- POSITION = "POSITION",
181
- RATING = "RATING",
182
- RAW_JSON = "RAW_JSON",
183
- RELATION = "RELATION",
184
- RICH_TEXT = "RICH_TEXT",
185
- SELECT = "SELECT",
186
- TEXT = "TEXT",
187
- TS_VECTOR = "TS_VECTOR",
188
- UUID = "UUID"
189
- }
190
-
191
- type IsExactly<T, U> = [T] extends [U] ? [U] extends [T] ? true : false : false;
192
-
193
- declare const TAG_COLORS: readonly ["red", "ruby", "crimson", "tomato", "orange", "amber", "yellow", "lime", "grass", "green", "jade", "mint", "turquoise", "cyan", "sky", "blue", "iris", "violet", "purple", "plum", "pink", "bronze", "gold", "brown", "gray"];
194
-
195
- type TagColor = (typeof TAG_COLORS)[number];
196
-
197
- declare class FieldMetadataDefaultOption {
198
- id?: string;
199
- position: number;
200
- label: string;
201
- value: string;
202
- }
203
- declare class FieldMetadataComplexOption extends FieldMetadataDefaultOption {
204
- color: TagColor;
205
- }
206
- type FieldMetadataOptionsMapping = {
207
- [FieldMetadataType.RATING]: FieldMetadataDefaultOption[];
208
- [FieldMetadataType.SELECT]: FieldMetadataComplexOption[];
209
- [FieldMetadataType.MULTI_SELECT]: FieldMetadataComplexOption[];
210
- };
211
- type FieldMetadataOptionForAnyType = null | FieldMetadataOptionsMapping[keyof FieldMetadataOptionsMapping];
212
- type FieldMetadataOptions<T extends FieldMetadataType = FieldMetadataType> = IsExactly<T, FieldMetadataType> extends true ? FieldMetadataOptionForAnyType : T extends keyof FieldMetadataOptionsMapping ? FieldMetadataOptionsMapping[T] : never | null;
213
-
214
- declare enum ConnectedAccountProvider {
215
- GOOGLE = "google",
216
- MICROSOFT = "microsoft",
217
- IMAP_SMTP_CALDAV = "imap_smtp_caldav",
218
- OIDC = "oidc",
219
- SAML = "saml",
220
- EMAIL_GROUP = "email_group",
221
- APP = "app"
222
- }
223
-
224
- declare enum FieldActorSource {
225
- EMAIL = "EMAIL",
226
- CALENDAR = "CALENDAR",
227
- WORKFLOW = "WORKFLOW",
228
- AGENT = "AGENT",
229
- API = "API",
230
- IMPORT = "IMPORT",
231
- MANUAL = "MANUAL",
232
- SYSTEM = "SYSTEM",
233
- WEBHOOK = "WEBHOOK",
234
- APPLICATION = "APPLICATION"
235
- }
236
- type ActorMetadata = {
237
- source: FieldActorSource;
238
- workspaceMemberId: string | null;
239
- name: string;
240
- context: {
241
- provider?: ConnectedAccountProvider;
242
- applicationId?: string;
243
- agentId?: string;
244
- };
245
- };
246
-
247
- type AddressMetadata = {
248
- addressStreet1: string;
249
- addressStreet2: string;
250
- addressCity: string;
251
- addressState: string;
252
- addressZipCode: string;
253
- addressCountry: string;
254
- addressLat: number;
255
- addressLng: number;
256
- };
257
-
258
- type CurrencyMetadata = {
259
- amountMicros: number;
260
- currencyCode: string;
261
- };
262
-
263
- type EmailsMetadata = {
264
- primaryEmail: string;
265
- additionalEmails: string[] | null;
266
- };
267
-
268
- type FullNameMetadata = {
269
- firstName: string;
270
- lastName: string;
271
- };
272
-
273
- type LinkMetadata = {
274
- label: string;
275
- url: string;
276
- };
277
- type LinksMetadata = {
278
- primaryLinkLabel: string;
279
- primaryLinkUrl: string;
280
- secondaryLinks: LinkMetadata[] | null;
281
- };
282
-
283
- type AdditionalPhoneMetadata = {
284
- number: string;
285
- countryCode: CountryCode;
286
- callingCode: string;
287
- };
288
- type PrimaryPhoneMetadata<T extends AdditionalPhoneMetadata = AdditionalPhoneMetadata> = {
289
- [Property in keyof AdditionalPhoneMetadata as `primaryPhone${Capitalize<string & Property>}`]: T[Property];
290
- };
291
- type PhonesMetadata = PrimaryPhoneMetadata & {
292
- additionalPhones: Array<AdditionalPhoneMetadata> | null;
293
- };
294
-
295
23
  type _JSONSchema = boolean | JSONSchema;
296
24
  type SchemaType = "object" | "array" | "string" | "number" | "boolean" | "null" | "integer";
297
25
  type JSONSchema = {
@@ -2591,45 +2319,327 @@ interface ZodDefault<T extends SomeType = $ZodType> extends _ZodType<$ZodDefault
2591
2319
  /** @deprecated Use `.unwrap()` instead. */
2592
2320
  removeDefault(): T;
2593
2321
  }
2594
- declare const ZodDefault: $constructor<ZodDefault>;
2595
- interface ZodPrefault<T extends SomeType = $ZodType> extends _ZodType<$ZodPrefaultInternals<T>>, $ZodPrefault<T> {
2596
- "~standard": ZodStandardSchemaWithJSON<this>;
2597
- unwrap(): T;
2322
+ declare const ZodDefault: $constructor<ZodDefault>;
2323
+ interface ZodPrefault<T extends SomeType = $ZodType> extends _ZodType<$ZodPrefaultInternals<T>>, $ZodPrefault<T> {
2324
+ "~standard": ZodStandardSchemaWithJSON<this>;
2325
+ unwrap(): T;
2326
+ }
2327
+ declare const ZodPrefault: $constructor<ZodPrefault>;
2328
+ interface ZodNonOptional<T extends SomeType = $ZodType> extends _ZodType<$ZodNonOptionalInternals<T>>, $ZodNonOptional<T> {
2329
+ "~standard": ZodStandardSchemaWithJSON<this>;
2330
+ unwrap(): T;
2331
+ }
2332
+ declare const ZodNonOptional: $constructor<ZodNonOptional>;
2333
+ interface ZodCatch<T extends SomeType = $ZodType> extends _ZodType<$ZodCatchInternals<T>>, $ZodCatch<T> {
2334
+ "~standard": ZodStandardSchemaWithJSON<this>;
2335
+ unwrap(): T;
2336
+ /** @deprecated Use `.unwrap()` instead. */
2337
+ removeCatch(): T;
2338
+ }
2339
+ declare const ZodCatch: $constructor<ZodCatch>;
2340
+ interface ZodPipe<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _ZodType<$ZodPipeInternals<A, B>>, $ZodPipe<A, B> {
2341
+ "~standard": ZodStandardSchemaWithJSON<this>;
2342
+ in: A;
2343
+ out: B;
2344
+ }
2345
+ declare const ZodPipe: $constructor<ZodPipe>;
2346
+ interface ZodPreprocess<B extends SomeType = $ZodType, I = unknown> extends ZodPipe<$ZodTransform<unknown, I>, B>, $ZodPreprocess<B, I> {
2347
+ "~standard": ZodStandardSchemaWithJSON<this>;
2348
+ _zod: $ZodPreprocessInternals<B, I>;
2349
+ def: $ZodPreprocessDef<B, I>;
2350
+ }
2351
+ declare const ZodPreprocess: $constructor<ZodPreprocess>;
2352
+ interface ZodReadonly<T extends SomeType = $ZodType> extends _ZodType<$ZodReadonlyInternals<T>>, $ZodReadonly<T> {
2353
+ "~standard": ZodStandardSchemaWithJSON<this>;
2354
+ unwrap(): T;
2355
+ }
2356
+ declare const ZodReadonly: $constructor<ZodReadonly>;
2357
+
2358
+ type input<T> = input$1<T>;
2359
+ /** Returns a copy of the schema with every pipe replaced by its input side. A codec's checks are dropped: they constrain the decoded value the input side never produces. */
2360
+ declare function input<T extends $ZodType>(schema: T): ZodType<input$1<T>, input$1<T>>;
2361
+
2362
+ declare const modelConfigurationSchema: ZodObject<{
2363
+ webSearch: ZodOptional<ZodObject<{
2364
+ enabled: ZodBoolean;
2365
+ configuration: ZodOptional<ZodRecord<ZodString, ZodAny>>;
2366
+ }, $strip>>;
2367
+ twitterSearch: ZodOptional<ZodObject<{
2368
+ enabled: ZodBoolean;
2369
+ configuration: ZodOptional<ZodRecord<ZodString, ZodAny>>;
2370
+ }, $strip>>;
2371
+ }, $strip>;
2372
+
2373
+ type ModelConfiguration = output<typeof modelConfigurationSchema>;
2374
+
2375
+ declare const ALLOWED_ADDRESS_SUBFIELDS: readonly ["addressStreet1", "addressStreet2", "addressCity", "addressState", "addressPostcode", "addressCountry", "addressLat", "addressLng"];
2376
+ type AllowedAddressSubField = (typeof ALLOWED_ADDRESS_SUBFIELDS)[number];
2377
+
2378
+ declare enum AggregateOperations {
2379
+ MIN = "MIN",
2380
+ MAX = "MAX",
2381
+ AVG = "AVG",
2382
+ SUM = "SUM",
2383
+ COUNT = "COUNT",
2384
+ COUNT_UNIQUE_VALUES = "COUNT_UNIQUE_VALUES",
2385
+ COUNT_EMPTY = "COUNT_EMPTY",
2386
+ COUNT_NOT_EMPTY = "COUNT_NOT_EMPTY",
2387
+ COUNT_TRUE = "COUNT_TRUE",
2388
+ COUNT_FALSE = "COUNT_FALSE",
2389
+ PERCENTAGE_EMPTY = "PERCENTAGE_EMPTY",
2390
+ PERCENTAGE_NOT_EMPTY = "PERCENTAGE_NOT_EMPTY"
2391
+ }
2392
+
2393
+ declare const COMMAND_MENU_CORE_OBJECT_NAMES: readonly ["workflow"];
2394
+ type CommandMenuCoreObjectName = (typeof COMMAND_MENU_CORE_OBJECT_NAMES)[number];
2395
+
2396
+ declare enum ContextStorePageType {
2397
+ Index = "INDEX_PAGE",
2398
+ Record = "RECORD_PAGE",
2399
+ Standalone = "STANDALONE_PAGE",
2400
+ Settings = "SETTINGS_PAGE"
2401
+ }
2402
+
2403
+ type RestrictedFieldPermissions = {
2404
+ canRead?: boolean | null;
2405
+ canUpdate?: boolean | null;
2406
+ };
2407
+
2408
+ type RestrictedFieldsPermissions = Record<string, RestrictedFieldPermissions>;
2409
+
2410
+ declare enum RowLevelPermissionPredicateOperand {
2411
+ IS = "IS",
2412
+ IS_NOT_NULL = "IS_NOT_NULL",
2413
+ IS_NOT = "IS_NOT",
2414
+ LESS_THAN_OR_EQUAL = "LESS_THAN_OR_EQUAL",
2415
+ GREATER_THAN_OR_EQUAL = "GREATER_THAN_OR_EQUAL",
2416
+ IS_BEFORE = "IS_BEFORE",
2417
+ IS_AFTER = "IS_AFTER",
2418
+ CONTAINS = "CONTAINS",
2419
+ DOES_NOT_CONTAIN = "DOES_NOT_CONTAIN",
2420
+ IS_EMPTY = "IS_EMPTY",
2421
+ IS_NOT_EMPTY = "IS_NOT_EMPTY",
2422
+ IS_RELATIVE = "IS_RELATIVE",
2423
+ IS_IN_PAST = "IS_IN_PAST",
2424
+ IS_IN_FUTURE = "IS_IN_FUTURE",
2425
+ IS_TODAY = "IS_TODAY",
2426
+ VECTOR_SEARCH = "VECTOR_SEARCH"
2427
+ }
2428
+
2429
+ type RelationPredicateValue = {
2430
+ isCurrentWorkspaceMemberSelected?: boolean;
2431
+ selectedRecordIds: string[];
2432
+ };
2433
+ type RowLevelPermissionPredicateValue = string | string[] | boolean | number | RelationPredicateValue | Record<string, unknown> | null;
2434
+
2435
+ type RowLevelPermissionPredicate = {
2436
+ id: string;
2437
+ fieldMetadataId: string;
2438
+ objectMetadataId: string;
2439
+ operand: RowLevelPermissionPredicateOperand;
2440
+ value: RowLevelPermissionPredicateValue;
2441
+ subFieldName: string | null;
2442
+ rowLevelPermissionPredicateGroupId: string | null;
2443
+ workspaceMemberFieldMetadataId: string | null;
2444
+ workspaceMemberSubFieldName: string | null;
2445
+ roleId: string;
2446
+ };
2447
+
2448
+ declare enum RowLevelPermissionPredicateGroupLogicalOperator {
2449
+ AND = "AND",
2450
+ OR = "OR"
2451
+ }
2452
+
2453
+ type RowLevelPermissionPredicateGroup = {
2454
+ id: string;
2455
+ logicalOperator: RowLevelPermissionPredicateGroupLogicalOperator;
2456
+ objectMetadataId: string;
2457
+ parentRowLevelPermissionPredicateGroupId: string | null;
2458
+ positionInRowLevelPermissionPredicateGroup: number | null;
2459
+ canReadRecords: boolean;
2460
+ canUpdateRecords: boolean;
2461
+ canSoftDeleteRecords: boolean;
2462
+ canDestroyRecords: boolean;
2463
+ roleId: string;
2464
+ };
2465
+
2466
+ type ObjectPermissions = {
2467
+ canReadObjectRecords: boolean;
2468
+ canUpdateObjectRecords: boolean;
2469
+ canSoftDeleteObjectRecords: boolean;
2470
+ canDestroyObjectRecords: boolean;
2471
+ restrictedFields: RestrictedFieldsPermissions;
2472
+ rowLevelPermissionPredicates: RowLevelPermissionPredicate[];
2473
+ rowLevelPermissionPredicateGroups: RowLevelPermissionPredicateGroup[];
2474
+ };
2475
+
2476
+ interface ObjectRecord {
2477
+ id: string;
2478
+ [key: string]: any;
2479
+ }
2480
+
2481
+ type CommandMenuContextApi = {
2482
+ pageType: ContextStorePageType;
2483
+ isInSidePanel: boolean;
2484
+ isDashboardPageLayoutInEditMode: boolean;
2485
+ isLayoutCustomizationModeEnabled: boolean;
2486
+ favoriteRecordIds: string[];
2487
+ isSelectAll: boolean;
2488
+ hasAnySoftDeleteFilterOnView: boolean;
2489
+ numberOfSelectedRecords: number;
2490
+ objectPermissions: ObjectPermissions & {
2491
+ objectMetadataId: string;
2492
+ };
2493
+ selectedRecords: ObjectRecord[];
2494
+ featureFlags: Record<string, boolean>;
2495
+ permissionFlags: Record<string, boolean>;
2496
+ targetObjectReadPermissions: Record<string, boolean>;
2497
+ targetObjectWritePermissions: Record<string, boolean>;
2498
+ canImpersonate: boolean;
2499
+ canAccessFullAdminPanel: boolean;
2500
+ objectMetadataItem: Record<string, unknown>;
2501
+ objectMetadataLabel: string;
2502
+ coreObjectName: CommandMenuCoreObjectName | null;
2503
+ };
2504
+
2505
+ declare enum CommandMenuItemAvailabilityType {
2506
+ GLOBAL = "GLOBAL",
2507
+ GLOBAL_OBJECT_CONTEXT = "GLOBAL_OBJECT_CONTEXT",
2508
+ RECORD_SELECTION = "RECORD_SELECTION",
2509
+ FALLBACK = "FALLBACK"
2598
2510
  }
2599
- declare const ZodPrefault: $constructor<ZodPrefault>;
2600
- interface ZodNonOptional<T extends SomeType = $ZodType> extends _ZodType<$ZodNonOptionalInternals<T>>, $ZodNonOptional<T> {
2601
- "~standard": ZodStandardSchemaWithJSON<this>;
2602
- unwrap(): T;
2511
+
2512
+ declare enum FieldMetadataType {
2513
+ ACTOR = "ACTOR",
2514
+ ADDRESS = "ADDRESS",
2515
+ ARRAY = "ARRAY",
2516
+ BOOLEAN = "BOOLEAN",
2517
+ CURRENCY = "CURRENCY",
2518
+ DATE = "DATE",
2519
+ DATE_TIME = "DATE_TIME",
2520
+ EMAILS = "EMAILS",
2521
+ FILES = "FILES",
2522
+ FULL_NAME = "FULL_NAME",
2523
+ LINKS = "LINKS",
2524
+ MORPH_RELATION = "MORPH_RELATION",
2525
+ MULTI_SELECT = "MULTI_SELECT",
2526
+ NUMBER = "NUMBER",
2527
+ NUMERIC = "NUMERIC",
2528
+ PHONES = "PHONES",
2529
+ POSITION = "POSITION",
2530
+ RATING = "RATING",
2531
+ RAW_JSON = "RAW_JSON",
2532
+ RELATION = "RELATION",
2533
+ RICH_TEXT = "RICH_TEXT",
2534
+ SELECT = "SELECT",
2535
+ TEXT = "TEXT",
2536
+ TS_VECTOR = "TS_VECTOR",
2537
+ UUID = "UUID"
2603
2538
  }
2604
- declare const ZodNonOptional: $constructor<ZodNonOptional>;
2605
- interface ZodCatch<T extends SomeType = $ZodType> extends _ZodType<$ZodCatchInternals<T>>, $ZodCatch<T> {
2606
- "~standard": ZodStandardSchemaWithJSON<this>;
2607
- unwrap(): T;
2608
- /** @deprecated Use `.unwrap()` instead. */
2609
- removeCatch(): T;
2539
+
2540
+ type IsExactly<T, U> = [T] extends [U] ? [U] extends [T] ? true : false : false;
2541
+
2542
+ declare const TAG_COLORS: readonly ["red", "ruby", "crimson", "tomato", "orange", "amber", "yellow", "lime", "grass", "green", "jade", "mint", "turquoise", "cyan", "sky", "blue", "iris", "violet", "purple", "plum", "pink", "bronze", "gold", "brown", "gray"];
2543
+
2544
+ type TagColor = (typeof TAG_COLORS)[number];
2545
+
2546
+ declare class FieldMetadataDefaultOption {
2547
+ id?: string;
2548
+ position: number;
2549
+ label: string;
2550
+ value: string;
2610
2551
  }
2611
- declare const ZodCatch: $constructor<ZodCatch>;
2612
- interface ZodPipe<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _ZodType<$ZodPipeInternals<A, B>>, $ZodPipe<A, B> {
2613
- "~standard": ZodStandardSchemaWithJSON<this>;
2614
- in: A;
2615
- out: B;
2552
+ declare class FieldMetadataComplexOption extends FieldMetadataDefaultOption {
2553
+ color: TagColor;
2616
2554
  }
2617
- declare const ZodPipe: $constructor<ZodPipe>;
2618
- interface ZodPreprocess<B extends SomeType = $ZodType, I = unknown> extends ZodPipe<$ZodTransform<unknown, I>, B>, $ZodPreprocess<B, I> {
2619
- "~standard": ZodStandardSchemaWithJSON<this>;
2620
- _zod: $ZodPreprocessInternals<B, I>;
2621
- def: $ZodPreprocessDef<B, I>;
2555
+ type FieldMetadataOptionsMapping = {
2556
+ [FieldMetadataType.RATING]: FieldMetadataDefaultOption[];
2557
+ [FieldMetadataType.SELECT]: FieldMetadataComplexOption[];
2558
+ [FieldMetadataType.MULTI_SELECT]: FieldMetadataComplexOption[];
2559
+ };
2560
+ type FieldMetadataOptionForAnyType = null | FieldMetadataOptionsMapping[keyof FieldMetadataOptionsMapping];
2561
+ type FieldMetadataOptions<T extends FieldMetadataType = FieldMetadataType> = IsExactly<T, FieldMetadataType> extends true ? FieldMetadataOptionForAnyType : T extends keyof FieldMetadataOptionsMapping ? FieldMetadataOptionsMapping[T] : never | null;
2562
+
2563
+ declare enum ConnectedAccountProvider {
2564
+ GOOGLE = "google",
2565
+ MICROSOFT = "microsoft",
2566
+ IMAP_SMTP_CALDAV = "imap_smtp_caldav",
2567
+ OIDC = "oidc",
2568
+ SAML = "saml",
2569
+ EMAIL_GROUP = "email_group",
2570
+ APP = "app"
2622
2571
  }
2623
- declare const ZodPreprocess: $constructor<ZodPreprocess>;
2624
- interface ZodReadonly<T extends SomeType = $ZodType> extends _ZodType<$ZodReadonlyInternals<T>>, $ZodReadonly<T> {
2625
- "~standard": ZodStandardSchemaWithJSON<this>;
2626
- unwrap(): T;
2572
+
2573
+ declare enum FieldActorSource {
2574
+ EMAIL = "EMAIL",
2575
+ CALENDAR = "CALENDAR",
2576
+ WORKFLOW = "WORKFLOW",
2577
+ AGENT = "AGENT",
2578
+ API = "API",
2579
+ IMPORT = "IMPORT",
2580
+ MANUAL = "MANUAL",
2581
+ SYSTEM = "SYSTEM",
2582
+ WEBHOOK = "WEBHOOK",
2583
+ APPLICATION = "APPLICATION"
2627
2584
  }
2628
- declare const ZodReadonly: $constructor<ZodReadonly>;
2585
+ type ActorMetadata = {
2586
+ source: FieldActorSource;
2587
+ workspaceMemberId: string | null;
2588
+ name: string;
2589
+ context: {
2590
+ provider?: ConnectedAccountProvider;
2591
+ applicationId?: string;
2592
+ agentId?: string;
2593
+ };
2594
+ };
2629
2595
 
2630
- type input<T> = input$1<T>;
2631
- /** Returns a copy of the schema with every pipe replaced by its input side. A codec's checks are dropped: they constrain the decoded value the input side never produces. */
2632
- declare function input<T extends $ZodType>(schema: T): ZodType<input$1<T>, input$1<T>>;
2596
+ type AddressMetadata = {
2597
+ addressStreet1: string;
2598
+ addressStreet2: string;
2599
+ addressCity: string;
2600
+ addressState: string;
2601
+ addressZipCode: string;
2602
+ addressCountry: string;
2603
+ addressLat: number;
2604
+ addressLng: number;
2605
+ };
2606
+
2607
+ type CurrencyMetadata = {
2608
+ amountMicros: number;
2609
+ currencyCode: string;
2610
+ };
2611
+
2612
+ type EmailsMetadata = {
2613
+ primaryEmail: string;
2614
+ additionalEmails: string[] | null;
2615
+ };
2616
+
2617
+ type FullNameMetadata = {
2618
+ firstName: string;
2619
+ lastName: string;
2620
+ };
2621
+
2622
+ type LinkMetadata = {
2623
+ label: string;
2624
+ url: string;
2625
+ };
2626
+ type LinksMetadata = {
2627
+ primaryLinkLabel: string;
2628
+ primaryLinkUrl: string;
2629
+ secondaryLinks: LinkMetadata[] | null;
2630
+ };
2631
+
2632
+ type AdditionalPhoneMetadata = {
2633
+ number: string;
2634
+ countryCode: CountryCode;
2635
+ callingCode: string;
2636
+ };
2637
+ type PrimaryPhoneMetadata<T extends AdditionalPhoneMetadata = AdditionalPhoneMetadata> = {
2638
+ [Property in keyof AdditionalPhoneMetadata as `primaryPhone${Capitalize<string & Property>}`]: T[Property];
2639
+ };
2640
+ type PhonesMetadata = PrimaryPhoneMetadata & {
2641
+ additionalPhones: Array<AdditionalPhoneMetadata> | null;
2642
+ };
2633
2643
 
2634
2644
  declare const richTextValueSchema: ZodObject<{
2635
2645
  tiptap: ZodOptional<ZodNullable<ZodString>>;
@@ -2831,6 +2841,12 @@ declare enum HTTPMethod {
2831
2841
  DELETE = "DELETE"
2832
2842
  }
2833
2843
 
2844
+ type IframeMediaPermission = {
2845
+ origin: string;
2846
+ microphone: boolean;
2847
+ camera: boolean;
2848
+ };
2849
+
2834
2850
  declare enum IndexType {
2835
2851
  BTREE = "BTREE",
2836
2852
  GIN = "GIN"
@@ -2859,6 +2875,9 @@ type LogicFunctionHttpResponse = {
2859
2875
  headers?: Record<string, string>;
2860
2876
  };
2861
2877
 
2878
+ declare const NATIVE_PAGE_KEYS: readonly ["workflows", "agents"];
2879
+ type NativePageKey = (typeof NATIVE_PAGE_KEYS)[number];
2880
+
2862
2881
  declare enum NavigationMenuItemType {
2863
2882
  VIEW = "VIEW",
2864
2883
  FOLDER = "FOLDER",
@@ -2866,7 +2885,8 @@ declare enum NavigationMenuItemType {
2866
2885
  OBJECT = "OBJECT",
2867
2886
  RECORD = "RECORD",
2868
2887
  PAGE_LAYOUT = "PAGE_LAYOUT",
2869
- AGENT_CHAT_CHANNEL = "AGENT_CHAT_CHANNEL"
2888
+ AGENT_CHAT_CHANNEL = "AGENT_CHAT_CHANNEL",
2889
+ NATIVE_PAGE = "NATIVE_PAGE"
2870
2890
  }
2871
2891
 
2872
2892
  declare enum ObjectOpenRecordIn {
@@ -3495,6 +3515,7 @@ type ApplicationManifest = SyncableEntityOptions$1 & {
3495
3515
  displayName: string;
3496
3516
  description: string;
3497
3517
  requestedCapabilities?: ApplicationCapability[];
3518
+ requestedIframeMediaPermissions?: IframeMediaPermission[];
3498
3519
  applicationVariables?: ApplicationVariables;
3499
3520
  billing?: ApplicationBilling;
3500
3521
  serverVariables?: ServerVariables;
@@ -3664,6 +3685,7 @@ type CommandMenuItemManifest$1 = SyncableEntityOptions$1 & {
3664
3685
  isPinned?: boolean;
3665
3686
  availabilityType?: CommandMenuItemAvailabilityType;
3666
3687
  availabilityObjectUniversalIdentifier?: string;
3688
+ availabilityCoreObjectName?: CommandMenuCoreObjectName;
3667
3689
  frontComponentUniversalIdentifier: string;
3668
3690
  conditionalAvailabilityExpression?: string;
3669
3691
  conditionalPinnedExpression?: string;
@@ -3837,6 +3859,29 @@ declare const workflowManifestSchema: ZodObject<{
3837
3859
  type: ZodLiteral<"LOGIC_FUNCTION">;
3838
3860
  logicFunctionUniversalIdentifier: ZodUUID;
3839
3861
  input: ZodRecord<ZodString, ZodUnknown>;
3862
+ }, $strict>, ZodObject<{
3863
+ universalIdentifier: ZodUUID;
3864
+ name: ZodString;
3865
+ nextStepIds: ZodArray<ZodUUID>;
3866
+ position: ZodOptional<ZodNullable<ZodObject<{
3867
+ x: ZodNumber;
3868
+ y: ZodNumber;
3869
+ }, $strip>>>;
3870
+ outputSchema: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
3871
+ expectedOutputSchema: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
3872
+ errorHandlingOptions: ZodOptional<ZodObject<{
3873
+ retryOnFailure: ZodObject<{
3874
+ value: ZodPreprocess<ZodNumber, unknown>;
3875
+ }, $strip>;
3876
+ continueOnFailure: ZodObject<{
3877
+ value: ZodBoolean;
3878
+ }, $strip>;
3879
+ }, $strip>>;
3880
+ type: ZodLiteral<"CODE">;
3881
+ input: ZodObject<{
3882
+ logicFunctionInput: ZodRecord<ZodString, ZodAny>;
3883
+ code: ZodString;
3884
+ }, $strict>;
3840
3885
  }, $strict>, ZodObject<{
3841
3886
  universalIdentifier: ZodUUID;
3842
3887
  name: ZodString;
@@ -4466,6 +4511,49 @@ declare const workflowManifestSchema: ZodObject<{
4466
4511
  }, $strip>>;
4467
4512
  type: ZodLiteral<"AI_AGENT">;
4468
4513
  input: ZodObject<{
4514
+ humanInputInstructions: ZodOptional<ZodString>;
4515
+ conversation: ZodOptional<ZodObject<{
4516
+ scope: ZodEnum<{
4517
+ KEY: "KEY";
4518
+ RUN: "RUN";
4519
+ STEP: "STEP";
4520
+ }>;
4521
+ key: ZodOptional<ZodString>;
4522
+ }, $strip>>;
4523
+ instructions: ZodOptional<ZodString>;
4524
+ modelId: ZodOptional<ZodString>;
4525
+ modelConfiguration: ZodOptional<ZodObject<{
4526
+ webSearch: ZodOptional<ZodObject<{
4527
+ enabled: ZodBoolean;
4528
+ configuration: ZodOptional<ZodRecord<ZodString, ZodAny>>;
4529
+ }, $strip>>;
4530
+ twitterSearch: ZodOptional<ZodObject<{
4531
+ enabled: ZodBoolean;
4532
+ configuration: ZodOptional<ZodRecord<ZodString, ZodAny>>;
4533
+ }, $strip>>;
4534
+ }, $strip>>;
4535
+ scope: ZodOptional<ZodObject<{
4536
+ canReadAllObjectRecords: ZodOptional<ZodBoolean>;
4537
+ canUpdateAllObjectRecords: ZodOptional<ZodBoolean>;
4538
+ canSoftDeleteAllObjectRecords: ZodOptional<ZodBoolean>;
4539
+ canDestroyAllObjectRecords: ZodOptional<ZodBoolean>;
4540
+ canUpdateAllSettings: ZodOptional<ZodBoolean>;
4541
+ canAccessAllTools: ZodOptional<ZodBoolean>;
4542
+ objectPermissions: ZodOptional<ZodArray<ZodObject<{
4543
+ objectUniversalIdentifier: ZodString;
4544
+ canReadObjectRecords: ZodOptional<ZodBoolean>;
4545
+ canUpdateObjectRecords: ZodOptional<ZodBoolean>;
4546
+ canSoftDeleteObjectRecords: ZodOptional<ZodBoolean>;
4547
+ canDestroyObjectRecords: ZodOptional<ZodBoolean>;
4548
+ }, $strict>>>;
4549
+ fieldPermissions: ZodOptional<ZodArray<ZodObject<{
4550
+ objectUniversalIdentifier: ZodString;
4551
+ fieldUniversalIdentifier: ZodString;
4552
+ canReadFieldValue: ZodOptional<ZodBoolean>;
4553
+ canUpdateFieldValue: ZodOptional<ZodBoolean>;
4554
+ }, $strict>>>;
4555
+ permissionFlagUniversalIdentifiers: ZodOptional<ZodArray<ZodString>>;
4556
+ }, $strict>>;
4469
4557
  prompt: ZodOptional<ZodString>;
4470
4558
  responseFormat: ZodOptional<ZodDiscriminatedUnion<[ZodObject<{
4471
4559
  type: ZodLiteral<"text">;
@@ -4485,17 +4573,8 @@ declare const workflowManifestSchema: ZodObject<{
4485
4573
  additionalProperties: ZodOptional<ZodLiteral<false>>;
4486
4574
  }, $strip>;
4487
4575
  }, $strip>], "type">>;
4488
- humanInputInstructions: ZodOptional<ZodString>;
4489
4576
  workspaceMemberId: ZodOptional<ZodString>;
4490
- conversation: ZodOptional<ZodObject<{
4491
- scope: ZodEnum<{
4492
- KEY: "KEY";
4493
- RUN: "RUN";
4494
- STEP: "STEP";
4495
- }>;
4496
- key: ZodOptional<ZodString>;
4497
- }, $strip>>;
4498
- agentUniversalIdentifier: ZodUUID;
4577
+ agentUniversalIdentifier: ZodOptional<ZodUUID>;
4499
4578
  }, $strict>;
4500
4579
  }, $strict>], "type">>;
4501
4580
  }, $strict>;
@@ -4524,6 +4603,7 @@ type NavigationMenuItemManifest = SyncableEntityOptions$1 & {
4524
4603
  position: number;
4525
4604
  viewUniversalIdentifier?: string;
4526
4605
  link?: string;
4606
+ nativePageKey?: NativePageKey;
4527
4607
  folderUniversalIdentifier?: string;
4528
4608
  targetObjectUniversalIdentifier?: string;
4529
4609
  pageLayoutUniversalIdentifier?: string;
@@ -4601,19 +4681,48 @@ type RelatedRecordPathManifest = SyncableEntityOptions$1 & {
4601
4681
  isInherent?: boolean;
4602
4682
  };
4603
4683
 
4604
- type ObjectPermissionManifest = Partial<SyncableEntityOptions$1> & {
4605
- objectUniversalIdentifier: string;
4606
- canReadObjectRecords?: boolean;
4607
- canUpdateObjectRecords?: boolean;
4608
- canSoftDeleteObjectRecords?: boolean;
4609
- canDestroyObjectRecords?: boolean;
4610
- };
4611
- type FieldPermissionManifest = Partial<SyncableEntityOptions$1> & {
4612
- objectUniversalIdentifier: string;
4613
- fieldUniversalIdentifier: string;
4614
- canReadFieldValue?: boolean;
4615
- canUpdateFieldValue?: boolean;
4616
- };
4684
+ declare const objectPermissionGrantSchema: ZodObject<{
4685
+ objectUniversalIdentifier: ZodString;
4686
+ canReadObjectRecords: ZodOptional<ZodBoolean>;
4687
+ canUpdateObjectRecords: ZodOptional<ZodBoolean>;
4688
+ canSoftDeleteObjectRecords: ZodOptional<ZodBoolean>;
4689
+ canDestroyObjectRecords: ZodOptional<ZodBoolean>;
4690
+ }, $strict>;
4691
+ declare const fieldPermissionGrantSchema: ZodObject<{
4692
+ objectUniversalIdentifier: ZodString;
4693
+ fieldUniversalIdentifier: ZodString;
4694
+ canReadFieldValue: ZodOptional<ZodBoolean>;
4695
+ canUpdateFieldValue: ZodOptional<ZodBoolean>;
4696
+ }, $strict>;
4697
+ declare const rolePermissionGrantsSchema: ZodObject<{
4698
+ canReadAllObjectRecords: ZodOptional<ZodBoolean>;
4699
+ canUpdateAllObjectRecords: ZodOptional<ZodBoolean>;
4700
+ canSoftDeleteAllObjectRecords: ZodOptional<ZodBoolean>;
4701
+ canDestroyAllObjectRecords: ZodOptional<ZodBoolean>;
4702
+ canUpdateAllSettings: ZodOptional<ZodBoolean>;
4703
+ canAccessAllTools: ZodOptional<ZodBoolean>;
4704
+ canAccessAllAgentChatChannels: ZodOptional<ZodBoolean>;
4705
+ objectPermissions: ZodOptional<ZodArray<ZodObject<{
4706
+ objectUniversalIdentifier: ZodString;
4707
+ canReadObjectRecords: ZodOptional<ZodBoolean>;
4708
+ canUpdateObjectRecords: ZodOptional<ZodBoolean>;
4709
+ canSoftDeleteObjectRecords: ZodOptional<ZodBoolean>;
4710
+ canDestroyObjectRecords: ZodOptional<ZodBoolean>;
4711
+ }, $strict>>>;
4712
+ fieldPermissions: ZodOptional<ZodArray<ZodObject<{
4713
+ objectUniversalIdentifier: ZodString;
4714
+ fieldUniversalIdentifier: ZodString;
4715
+ canReadFieldValue: ZodOptional<ZodBoolean>;
4716
+ canUpdateFieldValue: ZodOptional<ZodBoolean>;
4717
+ }, $strict>>>;
4718
+ permissionFlagUniversalIdentifiers: ZodOptional<ZodArray<ZodString>>;
4719
+ }, $strict>;
4720
+ type ObjectPermissionGrant = output<typeof objectPermissionGrantSchema>;
4721
+ type FieldPermissionGrant = output<typeof fieldPermissionGrantSchema>;
4722
+ type RolePermissionGrants = output<typeof rolePermissionGrantsSchema>;
4723
+
4724
+ type ObjectPermissionManifest = Partial<SyncableEntityOptions$1> & ObjectPermissionGrant;
4725
+ type FieldPermissionManifest = Partial<SyncableEntityOptions$1> & FieldPermissionGrant;
4617
4726
  type RowLevelPermissionPredicateGroupManifest$1 = SyncableEntityOptions$1 & {
4618
4727
  objectUniversalIdentifier: string;
4619
4728
  logicalOperator: RowLevelPermissionPredicateGroupLogicalOperator;
@@ -4631,17 +4740,10 @@ type RowLevelPermissionPredicateManifest$1 = SyncableEntityOptions$1 & {
4631
4740
  predicateGroupUniversalIdentifier?: string | null;
4632
4741
  position?: number | null;
4633
4742
  };
4634
- type RoleManifest = SyncableEntityOptions$1 & {
4743
+ type RoleManifest = SyncableEntityOptions$1 & Omit<RolePermissionGrants, 'objectPermissions' | 'fieldPermissions'> & {
4635
4744
  label: string;
4636
4745
  description?: string;
4637
4746
  icon?: string;
4638
- canUpdateAllSettings?: boolean;
4639
- canAccessAllTools?: boolean;
4640
- canAccessAllAgentChatChannels?: boolean;
4641
- canReadAllObjectRecords?: boolean;
4642
- canUpdateAllObjectRecords?: boolean;
4643
- canSoftDeleteAllObjectRecords?: boolean;
4644
- canDestroyAllObjectRecords?: boolean;
4645
4747
  canBeAssignedToUsers?: boolean;
4646
4748
  canBeAssignedToAgents?: boolean;
4647
4749
  canBeAssignedToApiKeys?: boolean;
@@ -4649,7 +4751,6 @@ type RoleManifest = SyncableEntityOptions$1 & {
4649
4751
  fieldPermissions?: FieldPermissionManifest[];
4650
4752
  rowLevelPermissionPredicates?: RowLevelPermissionPredicateManifest$1[];
4651
4753
  rowLevelPermissionPredicateGroups?: RowLevelPermissionPredicateGroupManifest$1[];
4652
- permissionFlagUniversalIdentifiers?: string[];
4653
4754
  };
4654
4755
 
4655
4756
  declare const SETTINGS_MENU_ITEM_SCOPES: readonly ["WORKSPACE", "USER"];
@@ -4693,6 +4794,16 @@ type TimelineActivityTypeManifest$1 = SyncableEntityOptions$1 & {
4693
4794
  replacesTimelineActivityTypeUniversalIdentifier?: string;
4694
4795
  };
4695
4796
 
4797
+ type ValidationRuleManifest = SyncableEntityOptions$1 & {
4798
+ objectUniversalIdentifier: string;
4799
+ name: string;
4800
+ description?: string;
4801
+ icon?: string;
4802
+ expression: string;
4803
+ message: string;
4804
+ errorFieldUniversalIdentifier?: string;
4805
+ };
4806
+
4696
4807
  type ViewManifestFilterValue = string | string[] | boolean | number | Record<string, unknown>;
4697
4808
  type ViewFieldManifest$1 = SyncableEntityOptions$1 & {
4698
4809
  fieldMetadataUniversalIdentifier: string;
@@ -4942,6 +5053,40 @@ declare const defineCommandMenuItem: DefineEntity<CommandMenuItemConfig$1>;
4942
5053
 
4943
5054
  declare const defineTimelineActivityType: DefineEntity<TimelineActivityTypeConfig$1>;
4944
5055
 
5056
+ type RuleExpression = {
5057
+ readonly source: string;
5058
+ readonly isCompound: boolean;
5059
+ };
5060
+ type RuleExpressionOperand = RuleExpression | string | number | boolean;
5061
+ declare const ruleExpression: {
5062
+ field: (path: string) => RuleExpression;
5063
+ now: RuleExpression;
5064
+ and: (...operands: RuleExpressionOperand[]) => RuleExpression;
5065
+ or: (...operands: RuleExpressionOperand[]) => RuleExpression;
5066
+ not: (operand: RuleExpressionOperand) => RuleExpression;
5067
+ eq: (left: RuleExpressionOperand, right: RuleExpressionOperand) => RuleExpression;
5068
+ notEq: (left: RuleExpressionOperand, right: RuleExpressionOperand) => RuleExpression;
5069
+ gt: (left: RuleExpressionOperand, right: RuleExpressionOperand) => RuleExpression;
5070
+ gte: (left: RuleExpressionOperand, right: RuleExpressionOperand) => RuleExpression;
5071
+ lt: (left: RuleExpressionOperand, right: RuleExpressionOperand) => RuleExpression;
5072
+ lte: (left: RuleExpressionOperand, right: RuleExpressionOperand) => RuleExpression;
5073
+ add: (left: RuleExpressionOperand, right: RuleExpressionOperand) => RuleExpression;
5074
+ subtract: (left: RuleExpressionOperand, right: RuleExpressionOperand) => RuleExpression;
5075
+ multiply: (left: RuleExpressionOperand, right: RuleExpressionOperand) => RuleExpression;
5076
+ divide: (left: RuleExpressionOperand, right: RuleExpressionOperand) => RuleExpression;
5077
+ isIn: (value: RuleExpressionOperand, list: readonly (string | number | boolean)[]) => RuleExpression;
5078
+ isDefined: (value: RuleExpressionOperand) => RuleExpression;
5079
+ isEmpty: (value: RuleExpressionOperand) => RuleExpression;
5080
+ isNonEmptyString: (value: RuleExpressionOperand) => RuleExpression;
5081
+ includes: (container: RuleExpressionOperand, value: RuleExpressionOperand) => RuleExpression;
5082
+ arrayLength: (value: RuleExpressionOperand) => RuleExpression;
5083
+ };
5084
+
5085
+ type ValidationRuleConfig = Omit<ValidationRuleManifest, 'expression'> & {
5086
+ expression: string | RuleExpression;
5087
+ };
5088
+ declare const defineValidationRule: ({ expression, ...config }: ValidationRuleConfig) => ValidationResult<ValidationRuleManifest>;
5089
+
4945
5090
  declare const defineSettingsMenuItem: DefineEntity<SettingsMenuItemConfig$1>;
4946
5091
 
4947
5092
  declare const pageType: CommandMenuContextApi["pageType"];
@@ -7983,6 +8128,12 @@ declare const STANDARD_OBJECTS: {
7983
8128
  conversationType: {
7984
8129
  universalIdentifier: string;
7985
8130
  };
8131
+ directMessageFirstWorkspaceMemberId: {
8132
+ universalIdentifier: string;
8133
+ };
8134
+ directMessageSecondWorkspaceMemberId: {
8135
+ universalIdentifier: string;
8136
+ };
7986
8137
  isAssistantParticipant: {
7987
8138
  universalIdentifier: string;
7988
8139
  };
@@ -8057,6 +8208,9 @@ declare const STANDARD_OBJECTS: {
8057
8208
  };
8058
8209
  };
8059
8210
  readonly indexes: {
8211
+ readonly directMessagePairUniqueIndex: {
8212
+ readonly universalIdentifier: "365c5b24-cd52-4ebc-98d2-23c5684216d5";
8213
+ };
8060
8214
  readonly workspaceMemberIndex: {
8061
8215
  readonly universalIdentifier: "079f2dd7-6c11-4eae-be8a-cce2d1bee0fb";
8062
8216
  };
@@ -9381,5 +9535,5 @@ declare const defineViewField: DefineEntity<StandaloneViewFieldManifest$1>;
9381
9535
 
9382
9536
  declare const defineWorkflow: DefineEntity<WorkflowManifest$1>;
9383
9537
 
9384
- 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, 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, selectedRecords, some, someDefined, someEquals, someNonEmptyString, targetObjectReadPermissions, targetObjectWritePermissions, validateFields };
9385
- 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, ServerRouteDispatchResult, ServerRouteResolverResult, SettingsFrontComponentConfig, SettingsMenuItemConfig, SettingsMenuItemManifest, SettingsMenuItemScope, StandalonePageLayoutWidgetManifest, StandaloneViewFieldManifest, SyncableEntityOptions, SystemViewKey, TimelineActivityTypeConfig, TimelineActivityTypeManifest, TwentyRecord, UninstallHandler, UninstallPayload, UserHealthCheckHandler, ValidationResult, ViewConfig, ViewFieldGroupManifest, ViewFieldManifest, ViewFilterGroupManifest, ViewFilterManifest, ViewGroupManifest, ViewManifestFilterValue, ViewSortManifest, WorkflowManifest };
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 };
9539
+ 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 };