twenty-sdk 2.19.0 → 2.20.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.
Files changed (42) hide show
  1. package/dist/billing/index.cjs.map +1 -1
  2. package/dist/billing/index.mjs.map +1 -1
  3. package/dist/catalog-sync-BXLh5-WO.mjs +18 -0
  4. package/dist/{catalog-sync-DHopgolZ.js → catalog-sync-CrfskDrz.js} +1 -1
  5. package/dist/cli/utilities/api/api-service.d.ts +10 -0
  6. package/dist/cli/utilities/api/application-api.d.ts +10 -0
  7. package/dist/cli/utilities/auth/build-app-token-pair-fetcher.d.ts +5 -0
  8. package/dist/cli/utilities/auth/ensure-app-access-token-is-valid-or-refresh.d.ts +11 -4
  9. package/dist/cli/utilities/auth/ensure-app-registration.d.ts +1 -1
  10. package/dist/cli/utilities/build/common/esbuild-result-processor.d.ts +2 -2
  11. package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator.d.ts +1 -0
  12. package/dist/cli/utilities/dev/orchestrator/steps/generate-api-client-orchestrator-step.d.ts +2 -4
  13. package/dist/cli/utilities/dev/orchestrator/steps/register-app-orchestrator-step.d.ts +1 -1
  14. package/dist/cli/utilities/version/get-server-version-from-api.d.ts +1 -0
  15. package/dist/cli.cjs +25 -32
  16. package/dist/cli.mjs +39604 -39589
  17. package/dist/define/index.cjs +19 -19
  18. package/dist/define/index.cjs.map +1 -1
  19. package/dist/define/index.d.ts +96 -18
  20. package/dist/define/index.mjs +5362 -5306
  21. package/dist/define/index.mjs.map +1 -1
  22. package/dist/front-component/index.cjs.map +1 -1
  23. package/dist/front-component/index.d.ts +1 -0
  24. package/dist/front-component/index.mjs +1 -1
  25. package/dist/front-component/index.mjs.map +1 -1
  26. package/dist/front-component-renderer/build.cjs +1 -1
  27. package/dist/front-component-renderer/build.mjs +6 -2
  28. package/dist/{get-front-component-build-plugins-Dqpyup2W.js → get-front-component-build-plugins-C7h3DVdC.js} +2 -2
  29. package/dist/{get-front-component-build-plugins-taotEFOp.mjs → get-front-component-build-plugins-klRAsPTE.mjs} +39 -32
  30. package/dist/get-function-input-schema-GNk3NRLJ-DSwo3Odm.mjs +77 -0
  31. package/dist/logic-function/index.cjs.map +1 -1
  32. package/dist/logic-function/index.mjs.map +1 -1
  33. package/dist/{login-Dasbw3em.mjs → login-BBQP9LPn.mjs} +6726 -6700
  34. package/dist/{login-eEfUoaiV.js → login-zBnjqpkc.js} +60 -47
  35. package/dist/operations.cjs +1 -1
  36. package/dist/operations.mjs +8 -4
  37. package/dist/utils/index.cjs.map +1 -1
  38. package/dist/utils/index.mjs.map +1 -1
  39. package/package.json +2 -2
  40. package/dist/catalog-sync-COKCJ_xf.mjs +0 -14
  41. package/dist/cli/utilities/build/manifest/utils/get-default-object-fields.d.ts +0 -6
  42. package/dist/get-function-input-schema-GNk3NRLJ-BoFRwEYV.mjs +0 -73
@@ -35,6 +35,19 @@ type AgentManifest = SyncableEntityOptions$1 & {
35
35
  responseFormat?: AgentResponseFormat;
36
36
  };
37
37
 
38
+ declare const APPLICATION_CATEGORIES: readonly ["Communication", "Productivity", "Product management", "Sales", "Marketing", "Enrichment", "Data", "Search", "Other"];
39
+ type KnownApplicationCategory = (typeof APPLICATION_CATEGORIES)[number];
40
+ type ApplicationCategory = KnownApplicationCategory | (string & {});
41
+
42
+ type PreInstallLogicFunctionApplicationManifest = SyncableEntityOptions$1 & {
43
+ universalIdentifier: string;
44
+ shouldRunOnVersionUpgrade?: boolean;
45
+ };
46
+
47
+ type PostInstallLogicFunctionApplicationManifest = PreInstallLogicFunctionApplicationManifest & {
48
+ shouldRunSynchronously?: boolean;
49
+ };
50
+
38
51
  declare enum FieldMetadataType {
39
52
  ACTOR = "ACTOR",
40
53
  ADDRESS = "ADDRESS",
@@ -95,15 +108,6 @@ type ServerVariableSchema = {
95
108
  };
96
109
  type ServerVariables = Record<string, ServerVariableSchema>;
97
110
 
98
- type PreInstallLogicFunctionApplicationManifest = SyncableEntityOptions$1 & {
99
- universalIdentifier: string;
100
- shouldRunOnVersionUpgrade?: boolean;
101
- };
102
-
103
- type PostInstallLogicFunctionApplicationManifest = PreInstallLogicFunctionApplicationManifest & {
104
- shouldRunSynchronously?: boolean;
105
- };
106
-
107
111
  type ApplicationManifest = SyncableEntityOptions$1 & {
108
112
  defaultRoleUniversalIdentifier: string;
109
113
  displayName: string;
@@ -111,9 +115,17 @@ type ApplicationManifest = SyncableEntityOptions$1 & {
111
115
  applicationVariables?: ApplicationVariables;
112
116
  serverVariables?: ServerVariables;
113
117
  author?: string;
114
- category?: string;
118
+ category?: ApplicationCategory;
119
+ /**
120
+ * @deprecated Use `logo` instead.
121
+ */
115
122
  logoUrl?: string;
123
+ logo?: string;
124
+ /**
125
+ * @deprecated Use `galleryImages` instead.
126
+ */
116
127
  screenshots?: string[];
128
+ galleryImages?: string[];
117
129
  aboutDescription?: string;
118
130
  websiteUrl?: string;
119
131
  termsUrl?: string;
@@ -129,6 +141,7 @@ type ApplicationManifest = SyncableEntityOptions$1 & {
129
141
  settingsCustomTabFrontComponentUniversalIdentifier?: string;
130
142
  packageJsonChecksum: string | null;
131
143
  yarnLockChecksum: string | null;
144
+ requiredServerVersionRange?: string | null;
132
145
  };
133
146
 
134
147
  type OAuthProviderTokenRequestContentType = 'json' | 'form-urlencoded';
@@ -1186,7 +1199,7 @@ type ViewManifest = SyncableEntityOptions$1 & {
1186
1199
  sorts?: ViewSortManifest[];
1187
1200
  };
1188
1201
 
1189
- type ApplicationConfig = Omit<ApplicationManifest, 'packageJsonChecksum' | 'yarnLockChecksum' | 'postInstallLogicFunction' | 'preInstallLogicFunction' | 'defaultRoleUniversalIdentifier' | 'aboutDescription'> & {
1202
+ type ApplicationConfig = Omit<ApplicationManifest, 'packageJsonChecksum' | 'yarnLockChecksum' | 'requiredServerVersionRange' | 'postInstallLogicFunction' | 'preInstallLogicFunction' | 'defaultRoleUniversalIdentifier' | 'aboutDescription'> & {
1190
1203
  /**
1191
1204
  * @deprecated Use `defineApplicationRole()` in your role file instead.
1192
1205
  */
@@ -1448,12 +1461,6 @@ declare const defineNavigationMenuItem: DefineEntity<NavigationMenuItemManifest>
1448
1461
 
1449
1462
  declare const defineObject: DefineEntity<ObjectConfig>;
1450
1463
 
1451
- declare const generateDefaultFieldUniversalIdentifier: ({ applicationUniversalIdentifier, objectUniversalIdentifier, fieldName, }: {
1452
- applicationUniversalIdentifier: string;
1453
- objectUniversalIdentifier: string;
1454
- fieldName: string;
1455
- }) => string;
1456
-
1457
1464
  declare const STANDARD_OBJECTS: {
1458
1465
  readonly attachment: {
1459
1466
  readonly universalIdentifier: "20202020-bd3d-4c60-8dca-571c71d4447a";
@@ -2426,6 +2433,18 @@ declare const STANDARD_OBJECTS: {
2426
2433
  readonly sentAt: {
2427
2434
  readonly universalIdentifier: "e2315b4f-9edf-4df2-96b9-961e76368671";
2428
2435
  };
2436
+ readonly sentCount: {
2437
+ readonly universalIdentifier: "2f333d2b-37b8-4ddc-ad0d-c07c6ce066ad";
2438
+ };
2439
+ readonly failedCount: {
2440
+ readonly universalIdentifier: "d373fcd7-b1ce-4c77-8031-a5785c475028";
2441
+ };
2442
+ readonly bouncedCount: {
2443
+ readonly universalIdentifier: "20d884a9-34dd-4667-8ecb-ceec224258e2";
2444
+ };
2445
+ readonly complainedCount: {
2446
+ readonly universalIdentifier: "82842cfa-f12a-4bab-bbde-b2cf587d0406";
2447
+ };
2429
2448
  readonly unsubscribeTopicId: {
2430
2449
  readonly universalIdentifier: "0648e7ad-1769-4ff6-a4d5-72da79ef169c";
2431
2450
  };
@@ -2477,6 +2496,46 @@ declare const STANDARD_OBJECTS: {
2477
2496
  readonly universalIdentifier: "975823ad-9b97-4f39-b2c7-fbd7d77f4bd1";
2478
2497
  };
2479
2498
  };
2499
+ readonly views: {
2500
+ readonly allMessageCampaigns: {
2501
+ readonly universalIdentifier: "ffedb368-33f0-43a7-b84e-e622b4e97be9";
2502
+ readonly viewFields: {
2503
+ readonly subject: {
2504
+ readonly universalIdentifier: "b017c851-e38d-4a81-ab38-0fb10e9f239e";
2505
+ };
2506
+ readonly status: {
2507
+ readonly universalIdentifier: "ef35df97-b1a5-4f16-8b85-5751e5019f63";
2508
+ };
2509
+ readonly list: {
2510
+ readonly universalIdentifier: "c0bf6a48-8695-4520-81e6-7462d35033b5";
2511
+ };
2512
+ readonly fromAddress: {
2513
+ readonly universalIdentifier: "553a0ea6-1f55-4143-a2d0-8c1ad0cf3dd1";
2514
+ };
2515
+ readonly sentAt: {
2516
+ readonly universalIdentifier: "7f4a9d81-afac-4d27-98de-0a2da65114f7";
2517
+ };
2518
+ readonly sentCount: {
2519
+ readonly universalIdentifier: "0be62e57-3955-49bd-a9ef-8f82f7a6e9aa";
2520
+ };
2521
+ readonly failedCount: {
2522
+ readonly universalIdentifier: "ad346c8e-f462-499e-89c8-da01d5460dc6";
2523
+ };
2524
+ readonly bouncedCount: {
2525
+ readonly universalIdentifier: "135d3fb9-bc45-4426-980b-9836ed792e3a";
2526
+ };
2527
+ readonly complainedCount: {
2528
+ readonly universalIdentifier: "9957dc6d-05ae-4829-ae7d-7cdf9239cdd0";
2529
+ };
2530
+ readonly recipients: {
2531
+ readonly universalIdentifier: "2f99f444-4af3-44fd-b08d-46955c4ac2a2";
2532
+ };
2533
+ readonly createdAt: {
2534
+ readonly universalIdentifier: "6dffa47d-3128-4d54-924a-4f67676116c2";
2535
+ };
2536
+ };
2537
+ };
2538
+ };
2480
2539
  };
2481
2540
  readonly messageList: {
2482
2541
  readonly universalIdentifier: "826561ea-4816-411c-baa0-eec5e6ca8866";
@@ -2523,6 +2582,25 @@ declare const STANDARD_OBJECTS: {
2523
2582
  readonly universalIdentifier: "8e205171-ed74-4620-b7d2-674aab85033a";
2524
2583
  };
2525
2584
  };
2585
+ readonly views: {
2586
+ readonly allMessageLists: {
2587
+ readonly universalIdentifier: "c72bae18-75e9-4cb0-baeb-379d3529b98f";
2588
+ readonly viewFields: {
2589
+ readonly name: {
2590
+ readonly universalIdentifier: "c9767580-34e6-420b-923d-b4abd8c13d96";
2591
+ };
2592
+ readonly members: {
2593
+ readonly universalIdentifier: "6d314c4b-215a-4094-963a-ff9dd8221aea";
2594
+ };
2595
+ readonly campaigns: {
2596
+ readonly universalIdentifier: "037030a2-9dad-4bfd-957a-313b362172b4";
2597
+ };
2598
+ readonly createdAt: {
2599
+ readonly universalIdentifier: "29f3e7de-c40b-4597-8568-7318c146e4da";
2600
+ };
2601
+ };
2602
+ };
2603
+ };
2526
2604
  };
2527
2605
  readonly messageListMember: {
2528
2606
  readonly universalIdentifier: "27773d24-8ce3-40f8-aa6c-1f590f2c08d2";
@@ -5343,5 +5421,5 @@ declare const defineView: DefineEntity<ViewConfig>;
5343
5421
 
5344
5422
  declare const defineViewField: DefineEntity<StandaloneViewFieldManifest>;
5345
5423
 
5346
- export { AggregateOperations, DateDisplayFormat, FieldMetadataSettingsOnClickAction, FieldMetadataType as FieldType, HTTPMethod, NavigationMenuItemType, NumberDataType, ObjectRecordBaseEvent, ObjectRecordCreateEvent, ObjectRecordDeleteEvent, ObjectRecordDestroyEvent, ObjectRecordGroupByDateGranularity, ObjectRecordRestoreEvent, ObjectRecordUpdateEvent, ObjectRecordUpsertEvent, RelationOnDeleteAction as OnDeleteAction, PageLayoutTabLayoutMode, PageLayoutType, 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, SystemPermissionFlag, ViewCalendarLayout, ViewFilterGroupLogicalOperator, ViewFilterOperand, ViewKey, ViewOpenRecordIn, ViewSortDirection, ViewType, ViewVisibility, canAccessFullAdminPanel, canImpersonate, createValidationResult, defineAgent, defineApplication, defineApplicationRole, defineCommandMenuItem, defineConnectionProvider, defineField, defineFrontComponent, defineIndex, defineLogicFunction, defineNavigationMenuItem, defineObject, definePageLayout, definePageLayoutTab, definePermissionFlag, definePostInstallLogicFunction, definePreInstallLogicFunction, defineRole, defineSkill, defineView, defineViewField, every, everyDefined, everyEquals, favoriteRecordIds, featureFlags, generateDefaultFieldUniversalIdentifier, 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 };
5424
+ export { AggregateOperations, DateDisplayFormat, FieldMetadataSettingsOnClickAction, FieldMetadataType as FieldType, HTTPMethod, NavigationMenuItemType, NumberDataType, ObjectRecordBaseEvent, ObjectRecordCreateEvent, ObjectRecordDeleteEvent, ObjectRecordDestroyEvent, ObjectRecordGroupByDateGranularity, ObjectRecordRestoreEvent, ObjectRecordUpdateEvent, ObjectRecordUpsertEvent, RelationOnDeleteAction as OnDeleteAction, PageLayoutTabLayoutMode, PageLayoutType, 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, SystemPermissionFlag, ViewCalendarLayout, ViewFilterGroupLogicalOperator, ViewFilterOperand, ViewKey, ViewOpenRecordIn, ViewSortDirection, ViewType, ViewVisibility, canAccessFullAdminPanel, canImpersonate, createValidationResult, defineAgent, defineApplication, defineApplicationRole, defineCommandMenuItem, defineConnectionProvider, defineField, defineFrontComponent, defineIndex, defineLogicFunction, defineNavigationMenuItem, defineObject, definePageLayout, definePageLayoutTab, definePermissionFlag, definePostInstallLogicFunction, definePreInstallLogicFunction, defineRole, defineSkill, defineView, defineViewField, every, everyDefined, everyEquals, favoriteRecordIds, featureFlags, 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 };
5347
5425
  export type { ActorMetadata as ActorField, AddressMetadata as AddressField, ApplicationConfig, CommandMenuItemConfig, CommandMenuItemManifest, CronPayload, CurrencyMetadata as CurrencyField, DatabaseEventPayload, DefinableEntity, DefineEntity, EmailsMetadata as EmailsField, FrontComponentConfig, FrontComponentType, FullNameMetadata as FullNameField, GridPosition, IndexConfig, IndexFieldManifest, IndexManifest, InputJsonSchema, InstallHandler, InstallPayload, LinksMetadata as LinksField, LogicFunctionConfig, LogicFunctionHandler, ObjectRecordEvent, PageLayoutConfig, PageLayoutManifest, PageLayoutTabConfig, PageLayoutTabManifest, PageLayoutWidgetConditionalDisplay, PageLayoutWidgetManifest, PageLayoutWidgetUniversalConfiguration, PermissionFlagConfig, PermissionFlagManifest, PermissionFlagPermissionType, PhonesMetadata as PhonesField, RichTextMetadata as RichTextField, LogicFunctionEvent as RoutePayload, RowLevelPermissionPredicateGroupManifest, RowLevelPermissionPredicateManifest, StandaloneViewFieldManifest, SyncableEntityOptions, TwentyRecord, ValidationResult, ViewConfig, ViewFieldGroupManifest, ViewFieldManifest, ViewFilterGroupManifest, ViewFilterManifest, ViewGroupManifest, ViewManifestFilterValue, ViewSortManifest };